Browse Source

Merge pull request #1672 from tt2468/bugfix_v0.16.1_ingress-egress-error

Fix netclient breaking when both ingress and egress modes are enabled
dcarns 2 years ago
parent
commit
42ffa2be32
1 changed files with 1 additions and 1 deletions
  1. 1 1
      logic/gateway.go

+ 1 - 1
logic/gateway.go

@@ -324,7 +324,7 @@ func firewallNFTCommandsCreateIngress(networkInterface string) (string, string)
 	postUp += "nft add rule ip filter FORWARD oifname " + networkInterface + " counter accept ; "
 	postUp += "nft add table nat ; "
 	postUp += "nft add chain nat postrouting ; "
-	postUp += "nft add rule ip nat postrouting oifname " + networkInterface + " counter masquerade"
+	postUp += "nft add rule ip nat postrouting oifname " + networkInterface + " counter masquerade ; "
 
 	// doesn't remove potentially empty tables or chains
 	postDown := "nft flush table filter ; "