diff --git a/Dockerfile.tinc b/Dockerfile.tinc index 40f9141..38f25bf 100644 --- a/Dockerfile.tinc +++ b/Dockerfile.tinc @@ -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" ] diff --git a/tinc/tinc-down.tmpl b/tinc/tinc-down.tmpl index 684e7b2..0ccbbf1 100644 --- a/tinc/tinc-down.tmpl +++ b/tinc/tinc-down.tmpl @@ -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