From 24cbaaa50bb81da1976751ef58bc5077538c25f9 Mon Sep 17 00:00:00 2001 From: "Matthew R. Kasun" Date: Sat, 3 Sep 2022 08:41:38 -0400 Subject: [PATCH] fix case for iptables rules --- logic/gateway.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/logic/gateway.go b/logic/gateway.go index d46f69c3..6722f418 100644 --- a/logic/gateway.go +++ b/logic/gateway.go @@ -402,8 +402,8 @@ func firewallIPTablesCommandsCreateEgress(networkInterface string, gatewayInterf postDown += "iptables -D FORWARD -o " + networkInterface + " -j ACCEPT ; " if egressNatEnabled == "yes" { - postUp += " ; iptables -t nat -A postrouting -o " + gatewayInterface + " -j masquerade ; " - postDown += " ; iptables -t nat -D postrouting -o " + gatewayInterface + " -j masquerade ; " + postUp += " ; iptables -t nat -A POSTROUTING -o " + gatewayInterface + " -j MASQUERADE ; " + postDown += " ; iptables -t nat -D POSTROUTING -o " + gatewayInterface + " -j MASQUERADE ; " } } if ipv6 {