Page 1 of 1

OpenVPN Split Tunneling - Amahi on Ubuntu

Posted: Wed Sep 19, 2012 7:24 am
by trapper
I have an Amahi server running on Ubuntu 12.04. For the most part this is a great setup and meeting my expectations. There is one issue that I would like to figure out. I have OpenVPN running and I am able to VPN into my server from my laptop. I am running Ubuntu 10.04 on the laptop and generally having no issues with that device.

I would like to run the connection in split tunnel mode. Right now when I enable the VPN connection I am able to connect to my Amahi server and all the app/shares I have configured on it. However I cannot browse to any other websites on the Internet in general. A 'netstat -ar' shows that my default route is via the tunnel. I would prefer to have only the traffic destined for the Amahi server going down the VPN tunnel.

What has me confused is that according to my research I should be able to remove the, push "redirect-gateway def1", statement and be able to run in split tunnel. However when I go to the /etc/openvpn/openvpn.conf file that command is not there. Where is OpenVPN picking up the redirect command to change the client default route? Am I looking in the wrong place for the OpenVPN config?

Re: OpenVPN Split Tunneling - Amahi on Ubuntu

Posted: Wed Sep 19, 2012 9:56 am
by bigfoot65
It is possible that it might be in /etc/default/openvpn.conf or maybe there is a settings file located elsewhere.

Might wanna google it specific for Ubuntu. I would think someone has already figured this out.

Re: OpenVPN Split Tunneling - Amahi on Ubuntu

Posted: Wed Sep 19, 2012 11:19 am
by trapper
I would have thought so too but my googling has not yielded any results, hence my post to the forum. I can't find any references to some other openvpn.conf file other than the one in /etc/openvpn.

The /etc/default/openvpn file appears to have a few parameters that apply to system startup and bringing up the OpenVPN server.

Re: OpenVPN Split Tunneling - Amahi on Ubuntu

Posted: Wed Sep 19, 2012 12:19 pm
by bigfoot65
Maybe try doing a search for VPN on the HDA.

Code: Select all

sudo find / -name openvpn*
That should show you were all files named openvpn* are located. One of them might yield the one you need.