[komaz.py] On compense l'incompétence des constructeurs de TPE
* 192.168.1.1 pointe vers charybde pour terminal.crans.org
This commit is contained in:
parent
8f592156e5
commit
d83034f77b
1 changed files with 2 additions and 0 deletions
|
@ -129,9 +129,11 @@ class firewall(base.firewall_routeur):
|
||||||
self.add(table, chain, '-j %s' % self.ssh_on_https(table))
|
self.add(table, chain, '-j %s' % self.ssh_on_https(table))
|
||||||
self.add(table, chain, '-j %s' % self.connexion_secours(table))
|
self.add(table, chain, '-j %s' % self.connexion_secours(table))
|
||||||
self.add(table, chain, '-j %s' % self.blacklist_soft(table))
|
self.add(table, chain, '-j %s' % self.blacklist_soft(table))
|
||||||
|
self.add(table, chain, '-s terminal.crans.org -d 192.168.1.1 -j DNAT --to-destination 138.231.136.98')
|
||||||
|
|
||||||
chain = 'POSTROUTING'
|
chain = 'POSTROUTING'
|
||||||
self.add(table, chain, '-j %s' % self.connexion_appartement(table))
|
self.add(table, chain, '-j %s' % self.connexion_appartement(table))
|
||||||
|
self.add(table, chain, '-s terminal.crans.org -d 138.231.136.98 -j MASQUERADE')
|
||||||
return
|
return
|
||||||
|
|
||||||
def tunnel_6in4(self, table=None, apply=False):
|
def tunnel_6in4(self, table=None, apply=False):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue