[Netfilter] fix mailcow isolation rule for iptables

This commit is contained in:
FreddleSpl0it
2024-02-02 17:40:44 +01:00
parent 909f07939e
commit 57e67ea8f7

View File

@@ -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")