Akagi201
8/6/2014 - 7:34 AM

chilli.conf.md

chilli.conf - chilli的配置文件

chilli有许多configuration parameter, 可以用在command line或者在一个configuration file. 当command line, options以"--"为前缀, 并且可以有或者没有"=", 例如, 下面等价:

chilli --uamallowed www.coova.org --uamanydns
chilli --uamallowed="www.coova.org" --uamanydns

当用在configuration file, options必须不能有任何"-", 但仍然可以有或者没有"=".

uamallowed "www.coova.org"
uamallowed=www.coova.org
uamanydns

在command line给出的options会接管任何先前在configuration file中的options. 配置文件也可以包含其他配置文件: include /path/to/chilli/configfile.conf.

空行和以'#'开始的注释行在配置文件中也是允许的.

Options

下面的options可以被放到命令行(加上前缀"--"), 或者放到配置文件中. 下面有些options带有前缀"--", 的通常只用在命令行.

--help 或 -h: 打印帮助然后退出(在命令行)

--version 或 -V: 打印版本然后退出(在命令行)

--fg 或 -f: 让server在前台运行(在命令行)

--debug 或 -d: 让server运行在debug模式(在命令行)

--debugfacility level: 增加debug level(在命令行, 应该被命名为debuglevel)

--conf file 或 -c file: 指定配置文件, 而不使用defaults文件.

logfacility facility: syslog(8) facility 用来logging.

interval seconds: 重新读取配置, 并且每隔几秒钟做一次DNS查询. 这个跟发送HUP信号有同样的效果. 如果interval被设置为0, 那么这个feature就被disabled.

pidfile file: 文件名用来存放process id.

statedir path: 存放non-volatile data的目录.

cmdsock file: UNIX socket用于和chilli_query(1)通信.

net net: uplink interface的网络地址(默认是 192.168.182.0/24). 这个网络地址是在初始化时候, chilli建立对于uplink interface的tun device. 这个网络地址格式可以是: (192.168.182.0 / 255.255.255.0) 或者 (192.168.182.0/24)

Refs