Update tinc/tinc-down.tmpl, Dockerfile.tinc files

This commit is contained in:
sump pump 2020-06-09 16:49:14 +00:00
parent 1be8caa32e
commit f1ff9e8c5d
2 changed files with 3 additions and 1 deletions

View File

@ -6,4 +6,4 @@ RUN apk add tinc iptables
EXPOSE 9993/tcp 655/udp
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" ]

View File

@ -1,3 +1,5 @@
#!/bin/sh
# Disable IPv4 kernel routing/forwarding for this network
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