Changes

From Amahi Wiki
Jump to: navigation, search
4,479 bytes added ,  10:30, 13 June 2017
no edit summary
= iPhone, iPod, iPad =We now have a new Amahi [http://www.amahi.org/apps/ipsec-vpn IPsec VPN app] for your HDA!
Go = Introduction =This VPN stack has many advantages, although it still requires two ports to Settings > Network VPN > IPSecbe forwarded from your router to your HDA. These are
'''500 UDP''' and '''4500 UDP''' UDP, not TCP. Here is how to set up clients for various client operating systems: * Description[[IPSec VPN iOS Client | iOS]] (iPad, iPhone, iPod) built-in client* [[IPSec VPN Windows Client | Windows 7]]* [[IPSec VPN Mac OS X Client | Mac OS X]] built-in client* [[IPSec VPN Android Client | Android]] built-in client, (ICS, i.e. 4.x or later)  The Android (2.x/3.x) OS is known to be broken with respect to [http: Amahi //www.amahi.org/apps/ipsec-vpn IPSec VPN]. See [[IPSEC/L2TP_VPN_Server|here]] for a manual implementation that should work. * Server'''NOTE: YOURNICK''' By default, the VPN will only route traffic destined for your home network via the VPN.yourhda General web traffic etc, will *not* be encrypted.com (put To change this behaviour so that all network traffic from your client is routed via your Amahi dyndns addressVPN, edit /etc/racoon/racoon.conf and remove the lines beginning "split_network" and "split_dns". The restart racoon.  = Changing Secret and/or Group Name = Optionally, nickname you can change the secret and host)/or group name. For that, you have to be able to edit a system file as root. * AccountBecome root via ssh or a terminal and then edit this file: USERNAME* Password /etc/racoon/psk.txt This file has two field separated by at least one space. The first one is the Group name and the second is the Secret. Change them , keeping in mind that. The changes will be picked up automatically a few seconds later. If you want to make sure, perform a: leave it as   service racoon restart = Route All traffic through VPN (Amahi 6/Ubuntu) = After you install IPSEC VPN and configure your router and iPhone correctly, you may find that Twitter and Facebook are still blocked by some networks. Also searching for "Ask Every Timewhat is my ip" via Google or put one if your favorite search engine will report back that you are still on the local network. The Amahi VPN is set to use a split VPN tunnel by default. If you feel itwant to use blocked services while behind somebody's safe internet filters, you can use these steps to encrypt your traffic and use blocked services like Twitter and Facebook.  Below are the steps to direct all traffic through the VPN. Please note this will divert all of your traffic through your HDA, but you will not be able to access some of your network resources. 1. Open a terminal on your HDA or use SSH.<br /> 2. Go to /etc/racoon. cd /etc/racoon 3. Back up the original racoon.conf in case things break.<br /> cp racoon.conf racoon.conf.orig 4. As root user, open racoon.conf with your favorite editor. sudo nano racoon.conf 5. Go to leave it therethe line with "mode_cfg".<pre>mode_cfg { auth_source system; save_passwd on; network4 10.8.1.1; netmask4 255.255.255.0; pool_size 10; dns4 192.168.1.10; wins4 192.168.1.10; default_domain "amahi3.com"; auth_throttle 60; split_network include 198.162.1.0/24 10.100.100.0/24; split_dns "home.com"; banner "/etc/racoon/welcome.txt";}</pre>   * Use Certificate<b>NOTE:</b> Let's concentrate on the two lines that were changed: leave it as OFF"split_network" and "split_dns". 6. Change split_network from "include" to "local_lan" and delete the 198.162.... range.<pre>mode_cfg {~~ split_network local_lan 10.100.100.0/24;</pre>   7. Also change "split_dns" to the name that I changed home domain to...<pre>mode_cfg {~~ split_dns "amahi3.com";</pre>  8. Save your work<br /> 9. Restart the racoon server  sudo service racoon restart   Or open up your HDA dashboard, click on settings->servers and restart the IPSEC server. Searching for "what is my ip" via Google or your favorite search engine should now report your home VPN. You should then be able to use Twitter and Facebook through your VPN. = Route all traffic through VPN (Fedora) =  * Group Name: Solution for IPSec VPN Server in Fedora 19 with Amahi7 in order to Forward all traffic through the VPN <br>1. At /etc/racoon/racoon.conf* Secretdelete the 2 lines with split in mode_cfg : you got   split_network include 192.168.1.0/24, 10.8.1.0/24; split_dns "home.com";  2. At your Hda run ifconfig to see what is your network interface. <br>At /etc/racoon/amahi-up-down change the secret when you installed lines 19 and 26 from eth0 to em1 because this is the IPSec VPN appnetwork interface of my Hda. The changes are<br>from: iptables -t nat -A POSTROUTING -s ${INTERNAL_ADDR4}/32 -o eth0 -j MASQUERADEto iptables -t nat -A POSTROUTING -s ${INTERNAL_ADDR4}/32 -o em1 -j MASQUERADE and from: iptables -t nat -D POSTROUTING -s ${INTERNAL_ADDR4}/32 -o eth0 -j MASQUERADE<br>to iptables -t nat -D POSTROUTING -s ${INTERNAL_ADDR4}/32 -o em1 -j MASQUERADE * ProxyFinally go to <nowiki>http: leave it as off//hda</nowiki>->Setup->Settings->Servers and restart the IPsec VPN Server.
Trusted, Bots, Bureaucrats, emailconfirmed, Administrators
4,146

edits