mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-26 05:27:31 +02:00
15 lines
266 B
Bash
Executable File
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} \
|
|
"$@"
|