From 57e67ea8f79a1fe218cb0f0ea8ad95a53b9f0179 Mon Sep 17 00:00:00 2001 From: FreddleSpl0it Date: Fri, 2 Feb 2024 17:40:44 +0100 Subject: [PATCH] [Netfilter] fix mailcow isolation rule for iptables --- data/Dockerfiles/netfilter/modules/IPTables.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/Dockerfiles/netfilter/modules/IPTables.py b/data/Dockerfiles/netfilter/modules/IPTables.py index 29a9fb65..3d3d4397 100644 --- a/data/Dockerfiles/netfilter/modules/IPTables.py +++ b/data/Dockerfiles/netfilter/modules/IPTables.py @@ -219,7 +219,7 @@ class IPTables: # insert mailcow isolation rule rule = iptc.Rule() - rule.in_interface = f'! {_interface}' + rule.in_interface = f'!{_interface}' rule.out_interface = _interface rule.protocol = 'tcp' rule.create_target("DROP") @@ -234,7 +234,7 @@ class IPTables: if _allow != "": rule = iptc.Rule() rule.src = _allow - rule.in_interface = f'! {_interface}' + rule.in_interface = f'!{_interface}' rule.out_interface = _interface rule.protocol = 'tcp' rule.create_target("ACCEPT")