OpenVPN Split Tunneling - Amahi on Ubuntu

trapper
Posts: 3
Joined: Mon Sep 17, 2012 12:29 pm

OpenVPN Split Tunneling - Amahi on Ubuntu

Postby trapper » Wed Sep 19, 2012 7:24 am

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?

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: OpenVPN Split Tunneling - Amahi on Ubuntu

Postby bigfoot65 » Wed Sep 19, 2012 9:56 am

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.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

trapper
Posts: 3
Joined: Mon Sep 17, 2012 12:29 pm

Re: OpenVPN Split Tunneling - Amahi on Ubuntu

Postby trapper » Wed Sep 19, 2012 11:19 am

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.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: OpenVPN Split Tunneling - Amahi on Ubuntu

Postby bigfoot65 » Wed Sep 19, 2012 12:19 pm

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.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 11 guests