2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-24 06:28:23 +01:00

update tinc

This commit is contained in:
kev
2016-07-01 02:41:31 +08:00
parent 4e1695de82
commit 25c4fa3da3
7 changed files with 84 additions and 101 deletions

14
tinc/docker-entrypoint.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/sh -e
/init.sh
mkdir -p /dev/net
[ -e /dev/net/tun ] || mknod /dev/net/tun c 10 200
iptables -t nat -A POSTROUTING -s ${NETWORK} -o eth0 -j MASQUERADE
exec tincd --no-detach \
--net=${NETNAME} \
--debug=${VERBOSE} \
"$@"