| « Installing maemo sdk and scratchbox on Debian Sid amd64 |
This short article describes how to set up PPTP or OpenVPN connection and leave default gateway to point to ISP on a Linux router while having incoming connectivity from a VPN.
1. Download router-script.sh. Edit DEV_GW and DEV_TUN to point to proper devices (see route -n output to determine which devices are used). DEV_GW is a device which connected with your ISP and TUN_GW - VPN device (usually ppp0 for PPTP or tun0 for OpenVPN)
2. If you are using OpenVPN, comment out 'redirect-gateway' keyword in configuration file. Establish a VPN connection on the router.
3. Run router-script.sh after VPN connection established.