Le parefeu est odlyd
This commit is contained in:
parent
2fe2d18f9a
commit
0cd6342912
2 changed files with 22 additions and 3 deletions
|
@ -167,7 +167,7 @@ class firewall(base.firewall_routeur):
|
|||
chain = super(self.__class__, self).test_mac_ip()
|
||||
|
||||
if table == 'filter':
|
||||
for key in ['out', 'tun-ovh' ]:
|
||||
for key in ['out', 'tun-soyouz' ]:
|
||||
self.add(table, chain, '-i %s -j RETURN' % dev[key])
|
||||
|
||||
return super(self.__class__, self).test_mac_ip(table, fill_ipset, apply)
|
||||
|
@ -192,8 +192,8 @@ class firewall(base.firewall_routeur):
|
|||
if table == 'filter':
|
||||
pretty_print(table, chain)
|
||||
for net in base.config.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, '-o %s -s %s -j ACCEPT' % (dev['tun-soyouz'], net))
|
||||
self.add(table, chain, '-i %s -d %s -j ACCEPT' % (dev['tun-soyouz'], net))
|
||||
self.add(table, chain, '-d %s -j REJECT' % net)
|
||||
print OK
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue