#!/bin/sh
CFGFILE=/etc/sockd.conf
PIDFILE=/tmp/sockd.pid
WORKERS=10

/etc/openvpn/up.sh
ip route add 192.168.1.0/24 via 172.17.0.1 dev eth0
echo -e "nameserver 192.168.1.1\n$(cat /etc/resolv.conf)" > /etc/resolv.conf
sockd -f $CFGFILE -p $PIDFILE -N $WORKERS &
