mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-12-24 06:28:23 +01:00
update tinc
This commit is contained in:
14
tinc/docker-entrypoint.sh
Executable file
14
tinc/docker-entrypoint.sh
Executable 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} \
|
||||
"$@"
|
||||
Reference in New Issue
Block a user