1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-29 18:21:24 +00:00
dockerfiles/tinc/docker-entrypoint.sh

15 lines
266 B
Bash
Raw Normal View History

2016-06-30 18:41:31 +00:00
#!/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} \
"$@"