1 # vim: set et sts=4 sw=4 encoding=utf-8 :
3 from pymin.services import *
4 from pymin.dispatcher import Handler
5 from os.path import join
7 base_path = join('var', 'lib', 'pymin')
8 pickle_path = join(base_path, 'pickle')
9 # FIXME, this should be specific for each service
10 config_path = join(base_path, 'config')
15 f = file("/proc/sys/net/ipv4/ip_forward","w")
18 #self.ip.device_up_hook(self.dns)
20 firewall = FirewallHandler(
21 pickle_dir = join(pickle_path, 'firewall'),
24 nat = NatHandler(pickle_dir = join(pickle_path, 'nat'))
27 pickle_dir = join(pickle_path, 'ppp'),
29 'pap-secrets': '/etc/ppp',
30 'chap-secrets': '/etc/ppp',
31 'options.X': '/etc/ppp',
32 'nameX': '/etc/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'),
47 'zoneX.zone': '/var/lib/named',
51 pickle_dir = join(pickle_path, 'dhcp'),
55 pickle_dir = join(pickle_path, 'proxy'),
56 config_dir = '/etc/squid')
59 pickle_dir = join(pickle_path, 'vrrp'),
60 config_dir = join(config_path, 'vrrp'),
64 pickle_dir = join(pickle_path, 'vpn'),
65 config_dir = '/etc/tinc')
68 #pickle_dir = join(pickle_path, 'qos'),
69 #config_dir = join(config_path, 'qos'))
73 '', # Bind IP ('' is ANY)