Update tinc/tinc-up.tmpl
This commit is contained in:
parent
43f49701fb
commit
7e235ff640
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
ifconfig \$INTERFACE ${tinc_peer_address} netmask ${netmask:-255.255.255.0}
|
ifconfig \$INTERFACE ${tinc_peer_address} netmask ${netmask:-255.255.255.0}
|
||||||
{{ if len "${vip:-}" }}ifconfig "\$INTERFACE:0" ${vip}{{ end }}{{ end }}
|
{{ if len "${vip:-}" }}ifconfig "\$INTERFACE:0" ${vip}{{ end }}
|
||||||
|
|
||||||
# Enable IPv4 kernel routing/forwarding for this network
|
# Enable IPv4 kernel routing/forwarding for this network
|
||||||
iptables -A FORWARD -o \$INTERFACE -d ${network_address}/${global_prefix:-16} -j ACCEPT
|
iptables -A FORWARD -o \$INTERFACE -d ${network_address}/${global_prefix:-16} -j ACCEPT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user