1 # vim: set et sts=4 sw=4 encoding=utf-8 :
3 # First of all, we need to setup the logging framework
7 format = '%(asctime)s %(name)-24s %(levelname)-8s %(message)s',
8 datefmt = '%a, %d %b %Y %H:%M:%S',
11 from pymin.dispatcher import Handler
12 from os.path import join
14 base_path = join('var', 'lib', 'pymin')
15 pickle_path = join(base_path, 'pickle')
16 # FIXME, this should be specific for each service
17 config_path = join(base_path, 'config')
20 pickle_dir = join(pickle_path, 'firewall')
21 config_dir = join(config_path, 'firewall')
24 pickle_dir = join(pickle_path, 'nat')
27 pickle_dir = join(pickle_path, 'ppp')
29 'pap-secrets': join(config_path, 'ppp'),
30 'chap-secrets': join(config_path, 'ppp'),
31 'options.X': join(config_path, 'ppp'),
32 'nameX': join(config_path, 'ppp', 'peers'),
36 pickle_dir = join(pickle_path, 'vpn')
37 config_dir = join(config_path, 'vpn')
40 pickle_dir = join(pickle_path, 'ip')
41 config_dir = join(config_path, 'ip')
44 pickle_dir = join(pickle_path, 'dns')
46 'named.conf': join(config_path, 'dns'),
47 'zoneX.zone': join(config_path, 'dns', 'zones'),
51 pickle_dir = join(pickle_path, 'dhcp')
52 config_dir = join(config_path, 'dhcp')
55 pickle_dir = join(pickle_path, 'proxy')
56 config_dir = join(config_path, 'proxy')
59 pickle_dir = join(pickle_path, 'vrrp')
60 config_dir = join(config_path, 'vrrp')
61 pid_dir = join(config_path, 'vrrp', 'run')
64 pickle_dir = join(pickle_path, 'vpn')
65 config_dir = join(config_path, 'vpn')
68 pickle_dir = join(pickle_path, 'qos')
69 config_dir = join(config_path, 'qos')
73 '', # Bind IP ('' is ANY)
77 services = 'firewall nat ppp vpn ip dns dhcp proxy vrrp qos'.split()
79 services_dirs = ['services']