From e8dcf0cb20180bb2bfceba0f5fcf5b5eca672ddd Mon Sep 17 00:00:00 2001 From: Nicolas Emiliani Date: Wed, 5 Dec 2007 12:57:36 -0300 Subject: [PATCH] Root class inyects ip forwrading in constructor. --- config.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/config.py b/config.py index 5854e34..91d8e2e 100644 --- a/config.py +++ b/config.py @@ -11,6 +11,12 @@ config_path = join(base_path, 'config') class Root(Handler): + def __init__(self): + f = file("/proc/sys/net/ipv4/ip_forward","w") + f.write("1") + f.close() + #self.ip.device_up_hook(self.dns) + firewall = FirewallHandler( pickle_dir = join(pickle_path, 'firewall'), config_dir = '/tmp') @@ -53,13 +59,14 @@ class Root(Handler): pickle_dir = join(pickle_path, 'vrrp'), config_dir = join(config_path, 'vrrp'), pid_dir = '/var/run') - + vpn = VpnHandler( pickle_dir = join(pickle_path, 'vpn'), config_dir = '/etc/tinc') + #qos = QoSHandler( - # pickle_dir = join(pickle_path, 'qos'), - # config_dir = join(config_path, 'qos')) + #pickle_dir = join(pickle_path, 'qos'), + #config_dir = join(config_path, 'qos')) bind_addr = \ ( -- 2.43.0