From 95babc700c252c287113a78bf7d961ce71b845ca Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Mon, 1 Feb 2021 16:59:34 +0100 Subject: [PATCH] Really fix masquerade rules Signed-off-by: Yohann D'ANELLO --- main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.py b/main.py index fa45c78..59488e5 100755 --- a/main.py +++ b/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"""