Skip to content
Sending all traffic through the VPN?
Got a problem with Viscosity or need help? Ask here!
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?
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?
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.
Regards
James
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
Web: https://www.sparklabs.com
Support: https://www.sparklabs.com/support
Twitter: https://twitter.com/sparklabs
Support: https://www.sparklabs.com/support
Twitter: https://twitter.com/sparklabs
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
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
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
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
Web: https://www.sparklabs.com
Support: https://www.sparklabs.com/support
Twitter: https://twitter.com/sparklabs
Support: https://www.sparklabs.com/support
Twitter: https://twitter.com/sparklabs
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
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