Update tinc-up.tmpl

This commit is contained in:
sump pump 2020-06-12 23:16:41 +00:00
parent a5df69d19a
commit 7a68e4a6ed

View File

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