#! /bin/sh ### BEGIN INIT INFO # Provides: startvpn # Required-Start: # Required-Stop: # Default-Start: 2 # Default-Stop: # Short-Description: Host OpenVPN Servers # Description: ### END INIT INFO #Tun 0 - Client will connect in to us here on UDP PORT 5000 openvpn --port 5000 --dev tun0 --ifconfig 10.99.0.1 10.99.0.2 --verb 1 --secret /etc/openvpn/tun0.key --fragment 1400 --mssfix 1400 --tun-mtu 1450 & sleep 3 #set up a route to the remote LAN subnet for this tunnel ip route add 192.168.10.0/24 via 10.99.0.1 #enable packet forwarding echo 1 > /proc/sys/net/ipv4/ip_forward