1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-26 00:38:37 +00:00
dockerfiles/tinc/docker-entrypoint.sh
2016-07-01 02:41:31 +08:00

15 lines
266 B
Bash
Executable File

#!/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} \
"$@"