Really fix masquerade rules

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
aurore
ynerant 3 years ago
parent 9e6e361781
commit 95babc700c
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85

@ -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…
Cancel
Save