mirror of
https://github.com/vimagick/dockerfiles
synced 2024-06-28 17:51:24 +00:00
14 lines
263 B
Bash
14 lines
263 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
/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
|
||
|
|
||
|
exec ocserv -c /etc/ocserv/ocserv.conf -f $@
|