mirror of
https://github.com/sstent/containers.git
synced 2025-12-06 08:01:51 +00:00
10 lines
261 B
Bash
10 lines
261 B
Bash
#!/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 &
|