1 # vim: set et sts=4 sw=4 encoding=utf-8 :
3 from pymin.dispatcher import Handler
4 from os.path import join
6 base_path = join('var', 'lib', 'pymin')
7 pickle_path = join(base_path, 'pickle')
8 # FIXME, this should be specific for each service
9 config_path = join(base_path, 'config')
12 pickle_dir = join(pickle_path, 'firewall')
13 config_dir = join(config_path, 'firewall')
16 pickle_dir = join(pickle_path, 'nat')
19 pickle_dir = join(pickle_path, 'ppp')
21 'pap-secrets': join(config_path, 'ppp'),
22 'chap-secrets': join(config_path, 'ppp'),
23 'options.X': join(config_path, 'ppp'),
24 'nameX': join(config_path, 'ppp', 'peers'),
28 pickle_dir = join(pickle_path, 'vpn')
29 config_dir = join(config_path, 'vpn')
32 pickle_dir = join(pickle_path, 'ip')
33 config_dir = join(config_path, 'ip')
36 pickle_dir = join(pickle_path, 'dns')
38 'named.conf': join(config_path, 'dns'),
39 'zoneX.zone': join(config_path, 'dns', 'zones'),
43 pickle_dir = join(pickle_path, 'dhcp')
44 config_dir = join(config_path, 'dhcp')
47 pickle_dir = join(pickle_path, 'proxy')
48 config_dir = join(config_path, 'proxy')
51 pickle_dir = join(pickle_path, 'vrrp')
52 config_dir = join(config_path, 'vrrp')
53 pid_dir = join(config_path, 'vrrp', 'run')
56 pickle_dir = join(pickle_path, 'vpn')
57 config_dir = join(config_path, 'vpn')
60 pickle_dir = join(pickle_path, 'qos')
61 config_dir = join(config_path, 'qos')
65 '', # Bind IP ('' is ANY)
69 services = 'firewall nat ppp vpn ip dns dhcp proxy vrrp qos'.split()
71 services_dirs = ['services']