VPN and Internet Browsing

dcwebster
Posts: 13
Joined: Tue Dec 29, 2009 1:07 pm

VPN and Internet Browsing

Postby dcwebster » Sun Jan 17, 2010 4:05 pm

Hi everyone. I recently successfully installed my Amahi home server. My server is located in the US and I am living in the UK. Using the HDAConnect VPN client I have been able to access my HDA and all file shares remotely. I was also hoping to use my HDA as an internet proxy so I can surf the web as-if I was still located in the US. Is this possible? If so, can you provide me with instructions for doing so?

Thanks!

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: VPN and Internet Browsing

Postby cpg » Mon Jan 18, 2010 1:12 am

it certainly is possible, however, not out of the box. :(

one possible solution is to set up your default gateway in your client to be your router in the network of your HDA.

i am not sure how to do that in windows for all connections.

there may even be a way to custom setup your VPN configuration to do that automatically when connecting (and undo it when disconnecting). not sure myself how to do this either, sorry.
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

nordge1
Posts: 10
Joined: Fri Aug 14, 2009 11:56 am

Re: VPN and Internet Browsing

Postby nordge1 » Mon Jan 18, 2010 10:48 am

I do this at work to bypass our web filter, works great. The answer is posted at the OpenVpn website
http://openvpn.net/index.php/open-sourc ... l#redirect

Procedure:
1. Use putty to ssh into the hda

2. Copy and paste the following into the ssh
nano /etc/openvpn/amahi.conf

3.add the line below to the bottom of the file (copy and paste)
push "redirect-gateway def1"

4. press ctrl+x then y enter

5. copy and paste
service openvpn restart

6. you will have to disconnect and reconnect your hdaconnect.

That should be it.

The only problem I have with this setup is that everytime there is an update to my hda I loose all my custom settings in /etc/openvpn/amahi.conf
as described in http://forums.amahi.org/viewtopic.php?f=3&t=25. The RPM listed is no longer valid and it dosn't appear that the fix for this issue is working as I keep loosing my settings.

Also my internal DNSing doesn't appear to work either at the moment. It worked great until 5.1. There was a bug fix released with 5.1 but It doesn't appear to work either. I think I will go submit a bug while I'm thinking of it.

Who is online

Users browsing this forum: No registered users and 4 guests