correct confusing comment in wireguard-nat-nftables script
This commit is contained in:
parent
ba18a69829
commit
02a862be61
|
@ -69,7 +69,7 @@ def main():
|
||||||
print("Changed dnat address from {} to {} for UDP port {}".format(ip, port_ip_mapping[port], port))
|
print("Changed dnat address from {} to {} for UDP port {}".format(ip, port_ip_mapping[port], port))
|
||||||
port_ip_mapping.pop(port)
|
port_ip_mapping.pop(port)
|
||||||
|
|
||||||
# loop through all remaining ports and add needed dnat rules
|
# loop through all ports and add needed dnat rules
|
||||||
for port in port_ip_mapping:
|
for port in port_ip_mapping:
|
||||||
rc, output, error = nft.cmd("add rule wireguard-nat prerouting iif {} udp dport {} dnat to {}".format(interface, port, port_ip_mapping[port]))
|
rc, output, error = nft.cmd("add rule wireguard-nat prerouting iif {} udp dport {} dnat to {}".format(interface, port, port_ip_mapping[port]))
|
||||||
if error:
|
if error:
|
||||||
|
|
Loading…
Reference in a new issue