Update tinc-up.tmpl

This commit is contained in:
sump pump 2020-06-12 23:12:41 +00:00
parent 216e72b7bf
commit 7c742d4a4e

View File

@ -8,3 +8,5 @@ iptables -A FORWARD -o \$INTERFACE -d ${network_address}/${global_prefix:-16} -j
# 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
{{ end }}{{ end }}