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)-18s %(levelname)-8s %(message)s',
8 datefmt = '%a, %d %b %Y %H:%M:%S',
11 from pymin.services import *
12 from pymin.dispatcher import Handler
13 from os.path import join
15 base_path = join('var', 'lib', 'pymin')
16 pickle_path = join(base_path, 'pickle')
17 # FIXME, this should be specific for each service
18 config_path = join(base_path, 'config')
22 firewall = FirewallHandler(
23 pickle_dir = join(pickle_path, 'firewall'),
24 config_dir = join(config_path, 'firewall'))
26 nat = NatHandler(pickle_dir = join(pickle_path, 'nat'))
29 pickle_dir = join(pickle_path, 'ppp'),
31 'pap-secrets': join(config_path, 'ppp'),
32 'chap-secrets': join(config_path, 'ppp'),
33 'options.X': join(config_path, 'ppp'),
34 'nameX': join(config_path, 'ppp', 'peers'),
38 pickle_dir = join(pickle_path, 'vpn'),
39 config_dir = join(config_path, 'vpn'))
42 pickle_dir = join(pickle_path, 'ip'),
43 config_dir = join(config_path, 'ip'))
46 pickle_dir = join(pickle_path, 'dns'),
48 'named.conf': join(config_path, 'dns'),
49 'zoneX.zone': join(config_path, 'dns', 'zones'),
53 pickle_dir = join(pickle_path, 'dhcp'),
54 config_dir = join(config_path, 'dhcp'))
57 pickle_dir = join(pickle_path, 'proxy'),
58 config_dir = join(config_path, 'proxy'))
61 pickle_dir = join(pickle_path, 'vrrp'),
62 config_dir = join(config_path, 'vrrp'),
63 pid_dir = join(config_path, 'vrrp', 'run'))
66 pickle_dir = join(pickle_path, 'vpn'),
67 config_dir = join(config_path, 'vpn'))
70 # pickle_dir = join(pickle_path, 'qos'),
71 # config_dir = join(config_path, 'qos'))
75 '', # Bind IP ('' is ANY)