[firewall4] Kludge pout tun-ovh
This commit is contained in:
parent
3fd1870daa
commit
9f790d9c44
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue