It has been awhile. I was having little luck and a friend said he'd try his way around if he time. He brought it back as time is something he has little of.
I had tried the redirect-gateway def1 in a few configs without the desired result. In going through some behavior I'd noticed in my attempts I am thinking I may want to look at running from jffs on a flash as I kept noticing the added data I would save via telnet/ssh would be easily lost. Also I am thinking this avenue may be worth a try as the providers config is for a tls-client and the webgui does not allow adding that key info, which could be complicating the process I'm looking to accomplish.
Something else that came to light in my reviewing info again is that I had disabled the firewall, thinking this would allow the openvpn connection/route to be created unhindered. I believe I am a little unclear now. Will a properly configured openvpn.conf file allow this router the ability to establish the necessary routes or should I be sure the firewall is enabled with the appropriate iptables? I am thinking the iptables end of this statement is the correct way.
Appreciate everyone who is dedicated to this effort/project and special thanks to those who offer their time and knowledge to noobs like me.
Use the redirect-gateway option to make the tunnel become your main route. It's in many of the wiki's example configs (there's like 5 guides) and you can read more about it in the openvpn documentation if want.
Posted: Fri Feb 18, 2011 5:10 Post subject: PS3 - NETFLIX - WRT160N v3 -SUCCESS!!
@ jalanmac
It doesn't get any simpler than this. I'm typing on the PC and watching my Netflix via PS3 at the same time. If anyone can't seem to manage it per the screenshot, use the alternate setup here:
In my case, it was two certificates and (what I figured out later) one registry key that REQUIRED to be applied in the three fields. Cut, paste and reboot:}
Managed to get Witopia SSL VPN working a few days ago after much trial and error. I have an ASUS RT-N16 with mega build 14896. I did not enable Openvpn Client on the GUI. I'm just using Startup and Firewall commands under the Administration / Commands tab.
HERE IS THE STARTUP CONFIG:
-------------------------------
cd /tmp
ln -s /usr/sbin/openvpn /tmp/myvpn
./myvpn --mktun --dev tap0
brctl addif br0 tap0
ifconfig tap0 0.0.0.0 promisc up
sleep 5
echo "
client
daemon
dev tun
proto udp
remote vpn.us.witopia.net 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client.crt
key client.key
ns-cert-type server
cipher bf-cbc
comp-lzo
verb 3
mute 20
mssfix 1450
echo "
-----BEGIN RSA PRIVATE KEY-----
INSERT YOUR NAME.KEY HERE
-----END RSA PRIVATE KEY-----
" > /tmp/client.key
chmod 600 /tmp/client.key
echo "
-----BEGIN CERTIFICATE-----
INSERT YOUR NAME.CRT HERE
-----END CERTIFICATE-----
" > /tmp/client.crt
./myvpn --config client.conf --float
route add -net 192.168.0.0/24 dev br0
--------------------------
***note the --float command may not be necessary but i'm using it since my DD-WRT is behind another router.
**** the last line "route add -net X.X.X.X/X dev br0" should reflect your own private network.
HERE IS THE FIREWALL CONFIG:
---------------------------------
iptables -A POSTROUTING -t nat -o tun0 -j MASQUERADE
----------------------------------
Also make sure your you have NTP running with a correct clock. I was using time.microsoft.com and it wasn't synching so I switched it to Canada's National Reaserch Council NTP at 132.246.168.148.
Hope this helps someone out there. Took me a while to read up and get it working.
If you are having problems enable System Log under Services/Services in the GUI, and you can check the log by telnet into the command line and using the command : cat /var/log/messages to try to determine why the vpn is failing. This helped me alot! It seems that there are many different people getting this working using different methods, this may just be one more to try, good luck.
Oh yeah if you doing this to access NETFLIX on an Apple TV 2 or an iPhone make sure to use your VPN providers DNS or an OPEN DNS server on the device. I was having a problem where steams wouldn't play, hard coded the DNS on the Apple TV 2 to Witopia's DNS and haven't had a problem since.
Please can you confirm that the router you are using for VPN is connected directly to the ISP or is behind any other router. As I am looking for a similar solution where I have the router running VPN to sit be hid the router connecting to e ISP.
Your post has helped a lot but I am not able to connect the devices to the second router and pass through the VPN
3. Enable the Keep Alive (administration-->keep alive-->watchdog)for your VPN provider's IP/address. eg; in my case, I want to exit through Witopia's LA gateway so I chose vpn.lax.witopia.net check your VPN service provider for a list of exit gateway IPs.
3a) remember that the keep alive address must be the same as the address you insert into the script later.
3b) set the keep alive port to 1194 (same as the script you use later)
4. save. and reboot from the admin tab.
NOW INSERT THE SCRIPT (administration--->Commands--->)
script worked fine. saved. MAKE SURE TO CHECK THAT EVERYTHING IS CORRECT.
1) your VPN provider's address
2) your keys and certs, are they spaced properly? (I heard it matters, no double return key, keep directly between the ---cert starts here--- and --cert ends here--)
3)Did you put in the correct local router IP?
save. reboot. grab a coke, return. reconnect to the wifi - my wifi now has a (2) at the end of its name.
check your ip with ipchicken or google ip "address locater" to make sure your IP puts you in a completely different place.
I hope that it's all fixed for me. one of my computers noted that it had the same IP as another one of my computers, but when I looked at all the PCs on my router, they each had a different local IP, so it may just be windows 7 complaining.
both computers told me they were in the new location.
The only thing now, how do I confirm that my traffic is encrypted?
--------------------------
***note the --float command may not be necessary but i'm using it since my DD-WRT is behind another router.
**** the last line "route add -net X.X.X.X/X dev br0" should reflect your own private network.
Hi Guys,
what does the 24 (route add -net 192.168.0.0/24 dev br0) stand for?
My routers address is 192.168.1.1 which i plugged in but don't know for what the "/24" stands?
It just the shorthand notation of the network subnet mask. /24 = 255.255.255.0
smiler51 wrote:
pavesk8 wrote:
....
./myvpn --config client.conf --float
route add -net 192.168.0.0/24 dev br0
--------------------------
***note the --float command may not be necessary but i'm using it since my DD-WRT is behind another router.
**** the last line "route add -net X.X.X.X/X dev br0" should reflect your own private network.
Hi Guys,
what does the 24 (route add -net 192.168.0.0/24 dev br0) stand for?
My routers address is 192.168.1.1 which i plugged in but don't know for what the "/24" stands?