Sending all traffic through the VPN?

Got a problem with Viscosity or need help? Ask here!

felipeds

Posts: 2
Joined: Fri Dec 05, 2008 1:39 pm

Post by felipeds » Fri Dec 05, 2008 2:37 pm
I would buy this software in a heartbeat if I can get it to work with dd-wrt open vpn. I know a lot of people are having problems over at dd-wrt.com forums connecting with a mac. Right now I have to resort to using a Vista install under parallels.

super_kev

Posts: 17
Joined: Fri Nov 14, 2008 3:05 am

Post by super_kev » Fri Dec 05, 2008 5:54 pm
Hey James,
I'm still messing around with this, and I can't figure out why I can connect to the VPN just fine, but when doing a traceroute to the VPN server (WAN ip) it still goes out my regular non-VPN internet connection, bypassing the VPN all together. Could this be caused by a DNS issue? I checked your config files and I'm curious why you have "redirect-gateway def1" & "dhcp-option DNS" in the client config vs. the server config (like I've seen in all the other examples on the 'net)? Did it matter that my setup had "push redirect-gateway def1" in the server file? I added "push dhcp-option DNS LAN.IP.of.VPN.router" but it still didn't seem to make any difference.

Also, when browsing the OpenVPN lists, I came across a few posts regarding getting a working DNS service in OS X:
-http://openvpn.net/archive/openvpn-user ... 00123.html
-http://openvpn.net/archive/openvpn-user ... 00120.html
-http://openvpn.net/archive/openvpn-user ... 00361.html
Since the above threads make mention of up/down scripts to be used with Tunnelblick to get the whole DNS issue to work, do I need to do the same with Viscosity?

James

User avatar
Posts: 1898
Joined: Thu Sep 04, 2008 9:27 pm

Post by James » Sat Dec 06, 2008 8:53 am
Well I'm just setting up a DD-WRT virtual machine in VMware now. I'll have a play and see if I can get a working configuration.
Could this be caused by a DNS issue?
It seems unlikely. The easiest way is to try pinging a remote server by it's IP address instead of it's DNS name. If it fails via DNS, but not with the direct IP, then you have a DNS issue. Otherwise it's probably a routing issue.
Did it matter that my setup had "push redirect-gateway def1" in the server file?
Nope, that's fine (and the way I'd recommend doing it). I just happened to have set up those settings client side in Viscosity.
do I need to do the same with Viscosity?
Nope, Viscosity comes with it's own set of DNS scripts. However you're able to use your own set if you like - just turn off Viscosity's DNS support (under the General tab), and then specify your own up/down scripts (under the Advanced tab).

Regards
James
James Bekkema
Viscosity Developer

Web: http://www.sparklabs.com
Support: http://www.sparklabs.com/support
Twitter: http://twitter.com/sparklabs

super_kev

Posts: 17
Joined: Fri Nov 14, 2008 3:05 am

Post by super_kev » Mon Dec 08, 2008 2:52 am
Hey James,
Since you're setting up a DD-WRT test box, scroll down in this thread and you'll see everything I did on my v24sp1 VPN build of DD-WRT (both client and server configs, commands, etc) so you can duplicate my setup for testing. Keep in mind I missed a character ("b") in the startup command area... should be brctl instead of rctl. :)

-http://dd-wrt.com/phpBB2/viewtopic.php?t=40220

super_kev

Posts: 17
Joined: Fri Nov 14, 2008 3:05 am

Post by super_kev » Thu Dec 18, 2008 3:05 am
Hey James,
Any luck with your setup?

James

User avatar
Posts: 1898
Joined: Thu Sep 04, 2008 9:27 pm

Post by James » Thu Dec 18, 2008 11:25 pm
Hi Kev,

Unfortunately DD-WRT doesn't seem to play nicely inside VMWare Fusion, so I'm currently working on getting it setup under VMWare Server on a Linux/Windows box. I'll post back when I have some further info.

Cheers
James
James Bekkema
Viscosity Developer

Web: http://www.sparklabs.com
Support: http://www.sparklabs.com/support
Twitter: http://twitter.com/sparklabs

felipeds

Posts: 2
Joined: Fri Dec 05, 2008 1:39 pm

Post by felipeds » Fri Dec 19, 2008 2:09 am
Please correct me if I'm naive. But wouldn't it be easier to run it off of a cheap router and test it out that way?

xenfinity


Post by xenfinity » Mon Jan 19, 2009 4:09 am
Any updates?

xenfinity


Post by xenfinity » Fri Feb 20, 2009 6:21 pm
Any updates?

mutz

Posts: 9
Joined: Thu Mar 05, 2009 8:40 pm

Post by mutz » Thu Mar 05, 2009 9:10 pm
i have dd-wrt VPN (v24 sp2 prerelease)
Everything works with viscosity still haven't tested to send all traffic through the VPN connection... cause i generally don't need it. I just use openVPN to access my home server. Will copy paste the settings files asap.

grtz



hmmm seems that enabling send all trafic over vpn connection doesn't work
35 posts Page 2 of 4