Project of the moment: Raspberry Pi wireless Pandora radio
Monday, November 15, 2010
set up dd-wrt with overplay vpn to the US
I was able to use the below config to only have one network in my home where some traffic is excluded from the tunnel to overplay (i.e. corporate, etc)
This way, my dd-wrt is able to send all traffic via US while making sure my local traffic go directly via my local ISP
After every reboot, it takes approx 2 mins for everything to set up properly by itself
This guide is mostly taken from http://www.overplay.net/blog/dd-wrt-overplay-pptp/
But it wasn't working initially for me and I had to change it a bit to make it work
dd-wrt:
Services -> VPN
Enable PPTP client:
Next to 'Server IP or DNS Name' enter 174.36.153.138 (west US)
Next to 'Remote Subnet' enter '10.20.0.0'.
Next to 'Remote Subnet Mask' enter '255.255.0.0'.
Next to 'MPPE Encryption' enter 'mppe required,no40,no56,stateless'
Next to 'MTU' enter '1450'.
Next to 'MRU' enter '1450'.
Enable 'NAT'.
Enter your OverPlay username and password into the 'User Name' and 'Password' boxes.
Click 'Save', and then 'Apply Settings'.
Then, under Administration -> Commands, enter:
(192.168.1.1 is the gateway that your dd-wrt connects to for internet)
(130.57.0.0/16 is the network to be excluded from the tunnel)
rm /tmp/overplay.sh
echo "sleep 60" > /tmp/overplay.sh;
echo "route add -host 174.36.153.138 gw 192.168.1.1" >> /tmp/overplay.sh;
echo "route add -net 130.57.0.0/16 gw 192.168.1.1" >> /tmp/overplay.sh;
echo "route del -net 0.0.0.0/0 gw 0.0.0.0" >> /tmp/overplay.sh;
echo "route add -net 0.0.0.0/0 gw 10.20.0.1" >> /tmp/overplay.sh;
echo "iptables -t nat -I POSTROUTING -o ppp0 -j MASQUERADE" >> /tmp/overplay.sh;
chmod +x /tmp/overplay.sh;/tmp/overplay.sh &
Hit save startup, then reboot