Update tinc-up.tmpl

This commit is contained in:
Manevolent 2023-04-23 20:23:39 -06:00 committed by GitHub
parent 0cc168bc33
commit 6828b71814
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,6 +15,7 @@ iptables -t nat -I PREROUTING -d {{ . }} -i eth0 -j DNAT --to-destination ${tinc
# Plugins may communicate over eth0, the 'internal' docker network.
# Because of this, we should allow masquerading NAT through eth0
iptables -A FORWARD -i eth0 -o \$INTERFACE -j ACCEPT
iptables -t nat -A POSTROUTING -i eth0 -o \$INTERFACE -j MASQUERADE
# Prevent spoofing attacks