소스 검색

Add missing line ending in ingress postUp command

Adds a missing line ending in the postUp masquerade command. This missing line is sneaky, and only seems to pose an issue when both ingress and egress modes are enabled.
tt2468 3 년 전
부모
커밋
c9d5a44a0e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 rule ip filter FORWARD oifname " + networkInterface + " counter accept ; "
 	postUp += "nft add table nat ; "
 	postUp += "nft add table nat ; "
 	postUp += "nft add chain nat postrouting ; "
 	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
 	// doesn't remove potentially empty tables or chains
 	postDown := "nft flush table filter ; "
 	postDown := "nft flush table filter ; "