1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-27 02:09:06 +02:00
dockerfiles/ocserv/docker-entrypoint.sh

14 lines
268 B
Bash
Raw Normal View History

2017-09-01 13:42:28 +02:00
#!/bin/sh
2016-06-28 22:35:26 +02:00
/init.sh
if [ ! -e /dev/net/tun ]; then
mkdir -p /dev/net
mknod /dev/net/tun c 10 200
chmod 600 /dev/net/tun
fi
iptables -t nat -A POSTROUTING -s ${VPN_NETWORK}/${VPN_NETMASK} -j MASQUERADE
2016-06-29 10:30:45 +02:00
exec ocserv -c /etc/ocserv/ocserv.conf -f -d 1 "$@"