Update tinc/tinc-up.tmpl
This commit is contained in:
parent
ce7af900b7
commit
842f348a51
@ -1,2 +1,7 @@
|
||||
#!/bin/sh
|
||||
ifconfig \$INTERFACE ${tinc_peer_address} netmask ${netmask:-255.255.255.0}
|
||||
|
||||
# Enable IPv4 kernel routing/forwarding for this network
|
||||
iptables -A FORWARD -o \$INTERFACE -d ${network_address}/${router_prefix:-24} -j ACCEPT
|
||||
{{ if len "${bgp_routes:-}" }}{{ range "$bgp_routes" | split "," }}iptables -A FORWARD -o ${internal_interface} -d {{.}} -j ACCEPT
|
||||
{{ end }}{{ end }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user