Update tinc/tinc-down.tmpl, Dockerfile.tinc files
This commit is contained in:
parent
1be8caa32e
commit
f1ff9e8c5d
@ -6,4 +6,4 @@ RUN apk add tinc iptables
|
|||||||
EXPOSE 9993/tcp 655/udp
|
EXPOSE 9993/tcp 655/udp
|
||||||
VOLUME /etc/tinc
|
VOLUME /etc/tinc
|
||||||
|
|
||||||
CMD [ "sh", "-c", "/usr/sbin/tincd --net=$NETNAME --no-detach --user=nobody --debug=3" ]
|
CMD [ "sh", "-c", "/usr/sbin/tincd --net=$NETNAME --no-detach --debug=3" ]
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
# Disable IPv4 kernel routing/forwarding for this network
|
# Disable IPv4 kernel routing/forwarding for this network
|
||||||
iptables -D FORWARD -o \$INTERFACE -d ${network_address}/${global_prefix:-16} -j ACCEPT
|
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
|
{{ if len "${bgp_routes:-}" }}{{ range "$bgp_routes" | split "," }}iptables -D FORWARD -o ${internal_interface:-eth0} -d {{.}} -j ACCEPT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user