• Networking
  • Setting up a VPN router to use with chromecast, netflix...etc?

are you connecting to the VPN on your PC or from the router directly?
It will not work with the nat of your isp...you need a proper vpn
@Stygmata, what do you recommend? Preferably one with a free trial.
dd-wrt is so fucking dumb! because of your problem and one i previously worked on (basically routing internet data between two routers) i knew how stupid it is. anyway after 1 hour of working i figured something out for you.

First setup the VPN client as you did in services tab and hit save and apply don't input the command script they provided!...
go to setup-->advanced routing and open the routing table refresh for a while you should see the IP of the VPN server routed to 192.168.1.254 if you did then VPN is UP if you didn't then you have something wrong with the VPN setup... anyway if you saw it then proceed to step 2

Step2: you need to add the following scripts to the stupid dd-wrt

Save this one as starup script
#!/bin/sh
sleep 50
VPN=$(/usr/sbin/nvram get pptpd_client_srvip)
/sbin/route add -host $VPN gw 192.168.1.254 dev vlan2
/sbin/route del default
/sbin/route add default dev ppp0
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

save this one as firewall script
iptables -I FORWARD -i br0 -o tun0 -j ACCEPT 
iptables -I FORWARD -i tun0 -o br0 -j ACCEPT
hit administration then reboot when router is on enter the advanced routing then open routing table and refresh for a while first you should see the VPN server ip routed to 192.168.1.254 keep refreshing it should after a while it should delete the default route 0.0.0.0 192.168.1.254 when that happens your data is routed through the vpn hopefully

@stygmata what does isp nat have to do with all this lol, no it works fine
DNA wrotedd-wrt is so fucking dumb! because of your problem and one i previously worked on (basically routing internet data between two routers) i knew how stupid it is. anyway after 1 hour of working i figured something out for you.

First setup the VPN client as you did in services tab and hit save and apply don't input the command script they provided!...
go to setup-->advanced routing and open the routing table refresh for a while you should see the IP of the VPN server routed to 192.168.1.254 if you did then VPN is UP if you didn't then you have something wrong with the VPN setup... anyway if you saw it then proceed to step 2

Step2: you need to add the following scripts to the stupid dd-wrt

Save this one as starup script
#!/bin/sh
sleep 50
VPN=$(/usr/sbin/nvram get pptpd_client_srvip)
/sbin/route add -host $VPN gw 192.168.1.254 dev vlan2
/sbin/route del default
/sbin/route add default dev ppp0
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

save this one as firewall script
iptables -I FORWARD -i br0 -o tun0 -j ACCEPT 
iptables -I FORWARD -i tun0 -o br0 -j ACCEPT
hit administration then reboot when router is on enter the advanced routing then open routing table and refresh for a while first you should see the VPN server ip routed to 192.168.1.254 keep refreshing it should after a while it should delete the default route 0.0.0.0 192.168.1.254 when that happens your data is routed through the vpn hopefully

@stygmata what does isp nat have to do with all this lol, no it works fine
it will not work ..
@stygmata enlighten me why? not just say it will not work for no reason, i just tried it on my router and it does work ,if you don't have an explanation just keep your opinion for yourself and not just quote my post that i worked 1 hour on lmao and say it will not work. man if it doesn't work I WILL MAKE IT WORK
DNA wrote@stygmata enlighten me why? not just say it will not work for no reason, i just tried it on my router and it does work ,if you don't have an explanation just keep your opinion for yourself and not just quote my post that i worked 1 hour on lmao and say it will not work. man if it doesn't work I WILL MAKE IT WORK
One hour to write this ?! Wow ! Now I'm sure it will not work
@OP follow up with this guide and if possible post your logs and which vpn are you using ?

@DNA i posted the R7000 because yes i have many active connected appliances from security cameras, mobile device, laptop, desktop and my media server which needs a good quality access point (and other family members devices). The benefit of the R7000 that is super awesome you could plugin a usb device and install all the scripts you need or a torrent server and tweak it as you want, also Kong is supporting this device is a big plus for me.
DNA wrotedd-wrt is so fucking dumb! because of your problem and one i previously worked on (basically routing internet data between two routers) i knew how stupid it is. anyway after 1 hour of working i figured something out for you.

First setup the VPN client as you did in services tab and hit save and apply don't input the command script they provided!...
go to setup-->advanced routing and open the routing table refresh for a while you should see the IP of the VPN server routed to 192.168.1.254 if you did then VPN is UP if you didn't then you have something wrong with the VPN setup... anyway if you saw it then proceed to step 2

Step2: you need to add the following scripts to the stupid dd-wrt

Save this one as starup script
#!/bin/sh
sleep 50
VPN=$(/usr/sbin/nvram get pptpd_client_srvip)
/sbin/route add -host $VPN gw 192.168.1.254 dev vlan2
/sbin/route del default
/sbin/route add default dev ppp0
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

save this one as firewall script
iptables -I FORWARD -i br0 -o tun0 -j ACCEPT 
iptables -I FORWARD -i tun0 -o br0 -j ACCEPT
hit administration then reboot when router is on enter the advanced routing then open routing table and refresh for a while first you should see the VPN server ip routed to 192.168.1.254 keep refreshing it should after a while it should delete the default route 0.0.0.0 192.168.1.254 when that happens your data is routed through the vpn hopefully

@stygmata what does isp nat have to do with all this lol, no it works fine

Worked!!! The video quality is great (720p) on netflix, do I have the green light to order a roku or google chromecast, will they work on this setup? What happens if I reboot the router, will I have to enter a new command?

TheStunMan, I will follow this guide and post the logs (but what do you want me to do before I stop the log, what data do you need to be recorded?) I paid for for a one month subscription at IBVPN (4.99$ a month), but used DNA's approach so went with the 3 Day trial with VYPRVPN (It costs 9.99$ a month, I'll subscribe to it after the trial is over).
Glad it worked for you stick with this setup as nothing else will work don't break it i won't fix it again =P and yea nothing will change even if you reboot it will always work after around 1 minute the router boots. try it for few days if it still works then that's a green light for you to buy a subscription am not sure why wouldn't roku or chromecast work you have a working VPN.

@TheStunMan the guide you linked to is actually not applicable for him he has a dd-wrt version which doesn't include Openvpn.
and yea if you have all those devices you definitely need a premium router and the R7000 is a good choice, it just bothers me to see people installing 100$+ routers only to use with 2Mb/s internet for 2 or 3 devices lol

@Stygmata it took me 1 hour to figure out how dumb dd-wrt is and not to write these two lines. well it worked after all, i know it feels hard on you after you were mocking and so sure about your skills, hopefully you learned that as much as you know there is someone out there who just knows much more, i hope you don't reply to this, it will make it worse for you just move on...
Thanks DNA, I will try it for a couple of days and if all goes well I'll go ahead and order the Chromecast. I'll keep you guys updated!
Update: I got the ChromeCast for 65$ from pcandparts on wednesday. The setup was easy and I was able to stream netflix and popcorn time to my T.V at HD quality. But it's not all sunshine and roses, I have to pay 10$ a month for the VPN service and to top it all off, the VPN slows down from 12:00-5:00 pm (but I can still watch at 480p). I'm also exploiting the sh*t out of my unlimited night bandwidth, I've been up 2 nights watching Dexter, and am already 13 GB over my limit because I streamed a whole season in midday.

Anyhow, I couldn't have done this without you guys and a special thanks to DNA for taking the time to write me a custom script and Haidcar for guiding me through the dd-wrt setup.

And for those thinking about getting the chromecast, I advise you to buy a Roku instead because not having a remote is a real hassle.