Really fix masquerade rules
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
parent
9e6e361781
commit
95babc700c
1 changed files with 1 additions and 2 deletions
3
main.py
3
main.py
|
@ -227,7 +227,6 @@ class iptables:
|
|||
if self.verbose:
|
||||
print("Nat : priv" + nat_to_do['name'])
|
||||
self.nat_prive_ip(nat_to_do)
|
||||
self.jump_all_trafic("nat", "POSTROUTING", "MASQUERADE")
|
||||
|
||||
def portail(self, table):
|
||||
if table == "filter":
|
||||
|
@ -642,7 +641,7 @@ class iptables:
|
|||
|
||||
if "masquerade" in nat_type:
|
||||
for ip_source in nat_type["masquerade"]:
|
||||
pass # self.jump_trafic_from_source('nat', ip_source, 'POSTROUTING', 'MASQUERADE', '4')
|
||||
self.jump_trafic_from_source('nat', ip_source, 'POSTROUTING', 'MASQUERADE', '4')
|
||||
|
||||
def gen_mangle(self, empty=False):
|
||||
"""Génération de la chaine mangle"""
|
||||
|
|
Loading…
Reference in a new issue