2020-06-09 16:49:14 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2020-06-09 16:26:25 +00:00
|
|
|
# Disable IPv4 kernel routing/forwarding for this network
|
2020-06-09 16:32:09 +00:00
|
|
|
iptables -D FORWARD -o \$INTERFACE -d ${network_address}/${global_prefix:-16} -j ACCEPT
|
|
|
|
{{ if len "${bgp_routes:-}" }}{{ range "$bgp_routes" | split "," }}iptables -D FORWARD -o ${internal_interface:-eth0} -d {{.}} -j ACCEPT
|
2020-06-09 16:26:25 +00:00
|
|
|
{{ end }}{{ end }}
|