Commit 9f790d9c authored by Valentin Samir's avatar Valentin Samir
Browse files

[firewall4] Kludge pout tun-ovh

parent 3fd1870d
......@@ -561,6 +561,8 @@ class firewall_komaz(firewall_base_routeur):
if table == 'filter':
pretty_print(table, chain)
for net in NETs['adm']:
self.add(table, chain, '-o %s -s %s -j ACCEPT' % (dev['tun-ovh'], net))
self.add(table, chain, '-i %s -d %s -j ACCEPT' % (dev['tun-ovh'], net))
self.add(table, chain, '-d %s -j REJECT' % net)
print OK
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment