Update tinc-down.tmpl

This commit is contained in:
sump pump 2020-06-12 23:17:41 +00:00
parent 7a68e4a6ed
commit 43482b3c1a

View File

@ -6,6 +6,6 @@ iptables -D FORWARD -o \$INTERFACE -d ${network_address}/${global_prefix:-16} -j
{{ end }}{{ end }}
# Prevent spoofing attacks
iptables -D FORWARD -i \$INTERFACE -s ! ${network_address}/${global_prefix:-16} -j DROP
iptables -D FORWARD -i \$INTERFACE ! -s ${network_address}/${global_prefix:-16} -j DROP
{{ if len "${bgp_routes:-}" }}{{ range "$bgp_routes" | split "," }}iptables -D FORWARD -i \$INTERFACE -s {{.}} -j DROP
{{ end }}{{ end }}