Skip to main content.

Before running

Now that xianc is fully configured you need to create the cachefiles where xianc will store it's data and, depending on your datasource, initialize the datasource. For iptables it means to add the necessary firewall rules.

Creating the Cachefiles

To create a cachefile you simply call xianc with the --create parameter. You can use this parameter multiple times. Example:

xianc --create cache0 --create cache1

You have to make sure the directory in which the cache files get created already exists. Otherwise the creation will fail.

Initializing the DataSource

Depending on the datasource you use, it needs to be initialized. For the iptables datasource you need to add the rules to the firewall. The windows datasource doesn't need initializing. It's safe however to call --init anyway, xianc will report you an error if it's unneeded. To initialize all datasources you just call xianc --init. You can see what xianc actually does with the --verbose option, so you can easily initialize a datasource manually without xianc. You probably need to run this on every reboot. It's a good idea to put it into either a cron (with @reboot) or put it in the init scripts. Still the preferred way is not to reboot :).

xianc --init