mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-06 01:07:41 +08:00
fix case for iptables rules
This commit is contained in:
@@ -402,8 +402,8 @@ func firewallIPTablesCommandsCreateEgress(networkInterface string, gatewayInterf
|
|||||||
postDown += "iptables -D FORWARD -o " + networkInterface + " -j ACCEPT ; "
|
postDown += "iptables -D FORWARD -o " + networkInterface + " -j ACCEPT ; "
|
||||||
|
|
||||||
if egressNatEnabled == "yes" {
|
if egressNatEnabled == "yes" {
|
||||||
postUp += " ; iptables -t nat -A 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 ; "
|
postDown += " ; iptables -t nat -D POSTROUTING -o " + gatewayInterface + " -j MASQUERADE ; "
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ipv6 {
|
if ipv6 {
|
||||||
|
Reference in New Issue
Block a user