<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.amahi.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Thanasis</id>
	<title>Amahi Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.amahi.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Thanasis"/>
	<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php/Special:Contributions/Thanasis"/>
	<updated>2026-05-11T09:35:56Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=IPsec_VPN&amp;diff=73334</id>
		<title>IPsec VPN</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=IPsec_VPN&amp;diff=73334"/>
		<updated>2013-09-19T08:27:12Z</updated>

		<summary type="html">&lt;p&gt;Thanasis: /* Forwarding all traffic through the VPN */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;We now have a new [http://www.amahi.org/apps/ipsec-vpn IPsec VPN] app for your HDA!&lt;br /&gt;
&lt;br /&gt;
This VPN stack has many advantages, although it still requires two ports to be forwarded from your router to your HDA. These are&lt;br /&gt;
&lt;br /&gt;
  '''500 UDP''' and '''4500 UDP'''&lt;br /&gt;
&lt;br /&gt;
UDP, not TCP.&lt;br /&gt;
&lt;br /&gt;
Here is how to set up clients for various client operating systems:&lt;br /&gt;
&lt;br /&gt;
* [[IPSec VPN iOS Client | iOS]] (iPad, iPhone, iPod) built-in client&lt;br /&gt;
* [[IPSec VPN Windows Client | Windows 7]]&lt;br /&gt;
* [[IPSec VPN Mac OS X Client | Mac OS X]] built-in client&lt;br /&gt;
* [[IPSec VPN Android Client | Android]] built-in client, (ICS, i.e. 4.x or later)&lt;br /&gt;
&lt;br /&gt;
The Android (2.x/3.x) OS is known to be broken with respect to [http://www.amahi.org/apps/ipsec-vpn IPSec VPN].  See [[IPSEC/L2TP_VPN_Server|here]] for a manual implementation that should work.&lt;br /&gt;
&lt;br /&gt;
= Changing the Secret and/or the Group Name =&lt;br /&gt;
&lt;br /&gt;
Optionally, you can change the secret and/or group name.&lt;br /&gt;
&lt;br /&gt;
For that, you have to be able to edit a system file as root.&lt;br /&gt;
&lt;br /&gt;
Become root via ssh or a terminal and then edit this file:&lt;br /&gt;
&lt;br /&gt;
          /etc/racoon/psk.txt&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
The changes will be picked up automatically a few seconds later. If you want to make sure, perform a:&lt;br /&gt;
&lt;br /&gt;
         service racoon restart&lt;br /&gt;
&lt;br /&gt;
= Route All IPSEC VPN traffic through IPSEC VPN =&lt;br /&gt;
&lt;br /&gt;
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 google-ing &amp;quot;what is my ip&amp;quot; will report back that you are still on the local network.&lt;br /&gt;
&lt;br /&gt;
The Amahi VPN is set to use a split VPN tunnel by default.  If you want to use blocked services while behind somebody's internet filters, you can use these steps to encrypt your traffic and use blocked services like twitter and facebook. &lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
1 Open a terminal on your hda or ssh in.&lt;br /&gt;
2 Go to /etc/racoon (that is spelled correctly BTW)&lt;br /&gt;
{{Code| cd /etc/racoon}}&lt;br /&gt;
3 Back-up the original racoon.conf in case things break&lt;br /&gt;
4 As root, open racoon.conf with your favorite editor, mine happens to be nano&lt;br /&gt;
{{Code| sudo nano racoon.conf}}&lt;br /&gt;
5 down arrow to the mode_cfg&lt;br /&gt;
{{Code| mode_cfg {&lt;br /&gt;
	auth_source system;&lt;br /&gt;
        save_passwd on;&lt;br /&gt;
        network4 10.8.1.1;&lt;br /&gt;
        netmask4 255.255.255.0;&lt;br /&gt;
        pool_size 10;&lt;br /&gt;
        dns4 192.168.1.10;&lt;br /&gt;
        wins4 192.168.1.10;&lt;br /&gt;
        default_domain &amp;quot;Jamahi3.com&amp;quot;;&lt;br /&gt;
        auth_throttle 60;&lt;br /&gt;
        split_network include 198.162.1.0/24 10.100.100.0/24;&lt;br /&gt;
        split_dns &amp;quot;home.com&amp;quot;;&lt;br /&gt;
        banner &amp;quot;/etc/racoon/welcome.txt&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
}}&lt;br /&gt;
note: I'm going to concentrate on the two lines that I changed: &amp;quot;split_network&amp;quot; and &amp;quot;split_dns&amp;quot;.&lt;br /&gt;
6 Change split_network from &amp;quot;include&amp;quot; to &amp;quot;local_lan&amp;quot; and delete the 198.162.... range.&lt;br /&gt;
{{Code| mode_cfg {&lt;br /&gt;
~~&lt;br /&gt;
        split_network local_lan 10.100.100.0/24;      &lt;br /&gt;
}}&lt;br /&gt;
7 I also changed split_dns to the name that I changed my home domain to...&lt;br /&gt;
{{Code| mode_cfg {&lt;br /&gt;
~~&lt;br /&gt;
        split_dns &amp;quot;Jamahi3.com&amp;quot;;&lt;br /&gt;
}}&lt;br /&gt;
8 Save your work&lt;br /&gt;
9 Restart the racoon server&lt;br /&gt;
{{Code| sudo service racoon restart      &lt;br /&gt;
}}&lt;br /&gt;
Or - open up your hda, click on settings&amp;gt;servers and restart the IPSEC server.&lt;br /&gt;
&lt;br /&gt;
Googling &amp;quot;What is My IP&amp;quot; should now report your home VPN.  You should then be able to use twitter and facebook through your VPN.&lt;br /&gt;
&lt;br /&gt;
= Forwarding all traffic through the VPN =&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Solution for IPSec VPN Server in Fedora 19 with Amahi 7 in order to Forward all traffic through the VPN&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
1.	 At /etc/racoon/racoon.conf&lt;br /&gt;
delete the 2 lines with split in mode_cfg  :&lt;br /&gt;
&lt;br /&gt;
{{Code|split_network include 192.168.1.0/24, 10.8.1.0/24;&lt;br /&gt;
split_dns &amp;quot;home.com&amp;quot;;}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2.	At your Hda run ifconfig to see what is your network interface. &lt;br /&gt;
&amp;lt;br&amp;gt;At /etc/racoon/amahi-up-down change the lines 19 and 26 from eth0 to em1 because this is the network interface of my Hda. The changes are&lt;br /&gt;
&amp;lt;br&amp;gt;from:&lt;br /&gt;
{{Code| iptables -t nat -A POSTROUTING -s ${INTERNAL_ADDR4}/32 -o eth0 -j MASQUERADE}}&lt;br /&gt;
to&lt;br /&gt;
{{Code| iptables -t nat -A POSTROUTING -s ${INTERNAL_ADDR4}/32 -o em1 -j MASQUERADE}}&lt;br /&gt;
&lt;br /&gt;
and from:&lt;br /&gt;
{{Code| iptables -t nat -D POSTROUTING -s ${INTERNAL_ADDR4}/32 -o eth0 -j MASQUERADE}}&lt;br /&gt;
&amp;lt;br&amp;gt;to&lt;br /&gt;
{{Code| iptables -t nat -D POSTROUTING -s ${INTERNAL_ADDR4}/32 -o em1 -j MASQUERADE}}&lt;br /&gt;
&lt;br /&gt;
Finally go to http://hda-&amp;gt;Setup-&amp;gt;Settings-&amp;gt;Servers and restart the IPsec VPN Server.&lt;/div&gt;</summary>
		<author><name>Thanasis</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=IPsec_VPN&amp;diff=73328</id>
		<title>IPsec VPN</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=IPsec_VPN&amp;diff=73328"/>
		<updated>2013-09-19T08:26:12Z</updated>

		<summary type="html">&lt;p&gt;Thanasis: /* Forwarding all traffic through the VPN */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;We now have a new [http://www.amahi.org/apps/ipsec-vpn IPsec VPN] app for your HDA!&lt;br /&gt;
&lt;br /&gt;
This VPN stack has many advantages, although it still requires two ports to be forwarded from your router to your HDA. These are&lt;br /&gt;
&lt;br /&gt;
  '''500 UDP''' and '''4500 UDP'''&lt;br /&gt;
&lt;br /&gt;
UDP, not TCP.&lt;br /&gt;
&lt;br /&gt;
Here is how to set up clients for various client operating systems:&lt;br /&gt;
&lt;br /&gt;
* [[IPSec VPN iOS Client | iOS]] (iPad, iPhone, iPod) built-in client&lt;br /&gt;
* [[IPSec VPN Windows Client | Windows 7]]&lt;br /&gt;
* [[IPSec VPN Mac OS X Client | Mac OS X]] built-in client&lt;br /&gt;
* [[IPSec VPN Android Client | Android]] built-in client, (ICS, i.e. 4.x or later)&lt;br /&gt;
&lt;br /&gt;
The Android (2.x/3.x) OS is known to be broken with respect to [http://www.amahi.org/apps/ipsec-vpn IPSec VPN].  See [[IPSEC/L2TP_VPN_Server|here]] for a manual implementation that should work.&lt;br /&gt;
&lt;br /&gt;
= Changing the Secret and/or the Group Name =&lt;br /&gt;
&lt;br /&gt;
Optionally, you can change the secret and/or group name.&lt;br /&gt;
&lt;br /&gt;
For that, you have to be able to edit a system file as root.&lt;br /&gt;
&lt;br /&gt;
Become root via ssh or a terminal and then edit this file:&lt;br /&gt;
&lt;br /&gt;
          /etc/racoon/psk.txt&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
The changes will be picked up automatically a few seconds later. If you want to make sure, perform a:&lt;br /&gt;
&lt;br /&gt;
         service racoon restart&lt;br /&gt;
&lt;br /&gt;
= Route All IPSEC VPN traffic through IPSEC VPN =&lt;br /&gt;
&lt;br /&gt;
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 google-ing &amp;quot;what is my ip&amp;quot; will report back that you are still on the local network.&lt;br /&gt;
&lt;br /&gt;
The Amahi VPN is set to use a split VPN tunnel by default.  If you want to use blocked services while behind somebody's internet filters, you can use these steps to encrypt your traffic and use blocked services like twitter and facebook. &lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
1 Open a terminal on your hda or ssh in.&lt;br /&gt;
2 Go to /etc/racoon (that is spelled correctly BTW)&lt;br /&gt;
{{Code| cd /etc/racoon}}&lt;br /&gt;
3 Back-up the original racoon.conf in case things break&lt;br /&gt;
4 As root, open racoon.conf with your favorite editor, mine happens to be nano&lt;br /&gt;
{{Code| sudo nano racoon.conf}}&lt;br /&gt;
5 down arrow to the mode_cfg&lt;br /&gt;
{{Code| mode_cfg {&lt;br /&gt;
	auth_source system;&lt;br /&gt;
        save_passwd on;&lt;br /&gt;
        network4 10.8.1.1;&lt;br /&gt;
        netmask4 255.255.255.0;&lt;br /&gt;
        pool_size 10;&lt;br /&gt;
        dns4 192.168.1.10;&lt;br /&gt;
        wins4 192.168.1.10;&lt;br /&gt;
        default_domain &amp;quot;Jamahi3.com&amp;quot;;&lt;br /&gt;
        auth_throttle 60;&lt;br /&gt;
        split_network include 198.162.1.0/24 10.100.100.0/24;&lt;br /&gt;
        split_dns &amp;quot;home.com&amp;quot;;&lt;br /&gt;
        banner &amp;quot;/etc/racoon/welcome.txt&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
}}&lt;br /&gt;
note: I'm going to concentrate on the two lines that I changed: &amp;quot;split_network&amp;quot; and &amp;quot;split_dns&amp;quot;.&lt;br /&gt;
6 Change split_network from &amp;quot;include&amp;quot; to &amp;quot;local_lan&amp;quot; and delete the 198.162.... range.&lt;br /&gt;
{{Code| mode_cfg {&lt;br /&gt;
~~&lt;br /&gt;
        split_network local_lan 10.100.100.0/24;      &lt;br /&gt;
}}&lt;br /&gt;
7 I also changed split_dns to the name that I changed my home domain to...&lt;br /&gt;
{{Code| mode_cfg {&lt;br /&gt;
~~&lt;br /&gt;
        split_dns &amp;quot;Jamahi3.com&amp;quot;;&lt;br /&gt;
}}&lt;br /&gt;
8 Save your work&lt;br /&gt;
9 Restart the racoon server&lt;br /&gt;
{{Code| sudo service racoon restart      &lt;br /&gt;
}}&lt;br /&gt;
Or - open up your hda, click on settings&amp;gt;servers and restart the IPSEC server.&lt;br /&gt;
&lt;br /&gt;
Googling &amp;quot;What is My IP&amp;quot; should now report your home VPN.  You should then be able to use twitter and facebook through your VPN.&lt;br /&gt;
&lt;br /&gt;
= Forwarding all traffic through the VPN =&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Solution for IPSec VPN Server in Fedora 19 with Amahi 7 in order to Forward all traffic through the VPN&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
1.	 At /etc/racoon/racoon.conf&lt;br /&gt;
delete the 2 lines with split in mode_cfg  :&lt;br /&gt;
&lt;br /&gt;
{{Code|split_network include 192.168.1.0/24, 10.8.1.0/24;&lt;br /&gt;
split_dns &amp;quot;home.com&amp;quot;;}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2.	At your Hda run ifconfig to see what is your network interface. &lt;br /&gt;
&amp;lt;br&amp;gt;At /etc/racoon/amahi-up-down change the lines 19 and 26 from eth0 to em1 because this is the network interface of my Hda. The changes are&lt;br /&gt;
&amp;lt;br&amp;gt;from:&lt;br /&gt;
{{Code| iptables -t nat -A POSTROUTING -s ${INTERNAL_ADDR4}/32 -o eth0 -j MASQUERADE}}&lt;br /&gt;
to&lt;br /&gt;
{{Code| iptables -t nat -A POSTROUTING -s ${INTERNAL_ADDR4}/32 -o em1 -j MASQUERADE}}&lt;br /&gt;
&lt;br /&gt;
and from:&lt;br /&gt;
{{Code| iptables -t nat -D POSTROUTING -s ${INTERNAL_ADDR4}/32 -o eth0 -j MASQUERADE}}&lt;br /&gt;
&amp;lt;br&amp;gt;to&lt;br /&gt;
{{Code| iptables -t nat -D POSTROUTING -s ${INTERNAL_ADDR4}/32 -o em1 -j MASQUERADE}}&lt;br /&gt;
&lt;br /&gt;
Finally I go to http://hda-&amp;gt;Setup-&amp;gt;Settings-&amp;gt;Servers and restart the IPsec VPN Server.&lt;/div&gt;</summary>
		<author><name>Thanasis</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=IPsec_VPN&amp;diff=73322</id>
		<title>IPsec VPN</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=IPsec_VPN&amp;diff=73322"/>
		<updated>2013-09-19T08:12:02Z</updated>

		<summary type="html">&lt;p&gt;Thanasis: /* Forwarding all traffic through the VPN */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;We now have a new [http://www.amahi.org/apps/ipsec-vpn IPsec VPN] app for your HDA!&lt;br /&gt;
&lt;br /&gt;
This VPN stack has many advantages, although it still requires two ports to be forwarded from your router to your HDA. These are&lt;br /&gt;
&lt;br /&gt;
  '''500 UDP''' and '''4500 UDP'''&lt;br /&gt;
&lt;br /&gt;
UDP, not TCP.&lt;br /&gt;
&lt;br /&gt;
Here is how to set up clients for various client operating systems:&lt;br /&gt;
&lt;br /&gt;
* [[IPSec VPN iOS Client | iOS]] (iPad, iPhone, iPod) built-in client&lt;br /&gt;
* [[IPSec VPN Windows Client | Windows 7]]&lt;br /&gt;
* [[IPSec VPN Mac OS X Client | Mac OS X]] built-in client&lt;br /&gt;
* [[IPSec VPN Android Client | Android]] built-in client, (ICS, i.e. 4.x or later)&lt;br /&gt;
&lt;br /&gt;
The Android (2.x/3.x) OS is known to be broken with respect to [http://www.amahi.org/apps/ipsec-vpn IPSec VPN].  See [[IPSEC/L2TP_VPN_Server|here]] for a manual implementation that should work.&lt;br /&gt;
&lt;br /&gt;
= Changing the Secret and/or the Group Name =&lt;br /&gt;
&lt;br /&gt;
Optionally, you can change the secret and/or group name.&lt;br /&gt;
&lt;br /&gt;
For that, you have to be able to edit a system file as root.&lt;br /&gt;
&lt;br /&gt;
Become root via ssh or a terminal and then edit this file:&lt;br /&gt;
&lt;br /&gt;
          /etc/racoon/psk.txt&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
The changes will be picked up automatically a few seconds later. If you want to make sure, perform a:&lt;br /&gt;
&lt;br /&gt;
         service racoon restart&lt;br /&gt;
&lt;br /&gt;
= Route All IPSEC VPN traffic through IPSEC VPN =&lt;br /&gt;
&lt;br /&gt;
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 google-ing &amp;quot;what is my ip&amp;quot; will report back that you are still on the local network.&lt;br /&gt;
&lt;br /&gt;
The Amahi VPN is set to use a split VPN tunnel by default.  If you want to use blocked services while behind somebody's internet filters, you can use these steps to encrypt your traffic and use blocked services like twitter and facebook. &lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
1 Open a terminal on your hda or ssh in.&lt;br /&gt;
2 Go to /etc/racoon (that is spelled correctly BTW)&lt;br /&gt;
{{Code| cd /etc/racoon}}&lt;br /&gt;
3 Back-up the original racoon.conf in case things break&lt;br /&gt;
4 As root, open racoon.conf with your favorite editor, mine happens to be nano&lt;br /&gt;
{{Code| sudo nano racoon.conf}}&lt;br /&gt;
5 down arrow to the mode_cfg&lt;br /&gt;
{{Code| mode_cfg {&lt;br /&gt;
	auth_source system;&lt;br /&gt;
        save_passwd on;&lt;br /&gt;
        network4 10.8.1.1;&lt;br /&gt;
        netmask4 255.255.255.0;&lt;br /&gt;
        pool_size 10;&lt;br /&gt;
        dns4 192.168.1.10;&lt;br /&gt;
        wins4 192.168.1.10;&lt;br /&gt;
        default_domain &amp;quot;Jamahi3.com&amp;quot;;&lt;br /&gt;
        auth_throttle 60;&lt;br /&gt;
        split_network include 198.162.1.0/24 10.100.100.0/24;&lt;br /&gt;
        split_dns &amp;quot;home.com&amp;quot;;&lt;br /&gt;
        banner &amp;quot;/etc/racoon/welcome.txt&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
}}&lt;br /&gt;
note: I'm going to concentrate on the two lines that I changed: &amp;quot;split_network&amp;quot; and &amp;quot;split_dns&amp;quot;.&lt;br /&gt;
6 Change split_network from &amp;quot;include&amp;quot; to &amp;quot;local_lan&amp;quot; and delete the 198.162.... range.&lt;br /&gt;
{{Code| mode_cfg {&lt;br /&gt;
~~&lt;br /&gt;
        split_network local_lan 10.100.100.0/24;      &lt;br /&gt;
}}&lt;br /&gt;
7 I also changed split_dns to the name that I changed my home domain to...&lt;br /&gt;
{{Code| mode_cfg {&lt;br /&gt;
~~&lt;br /&gt;
        split_dns &amp;quot;Jamahi3.com&amp;quot;;&lt;br /&gt;
}}&lt;br /&gt;
8 Save your work&lt;br /&gt;
9 Restart the racoon server&lt;br /&gt;
{{Code| sudo service racoon restart      &lt;br /&gt;
}}&lt;br /&gt;
Or - open up your hda, click on settings&amp;gt;servers and restart the IPSEC server.&lt;br /&gt;
&lt;br /&gt;
Googling &amp;quot;What is My IP&amp;quot; should now report your home VPN.  You should then be able to use twitter and facebook through your VPN.&lt;br /&gt;
&lt;br /&gt;
= Forwarding all traffic through the VPN =&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Solution for IPSec VPN Server in Fedora 19 with Amahi 7 in order to Forward all traffic through the VPN&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
1.	 At /etc/racoon/racoon.conf&amp;lt;/br&amp;gt;&lt;br /&gt;
Delete the 2 lines with split in mode_cfg  :&lt;br /&gt;
&lt;br /&gt;
split_network include 192.168.1.0/24, 10.8.1.0/24;&lt;br /&gt;
&amp;lt;br&amp;gt;split_dns &amp;quot;home.com&amp;quot;;&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2.	At your Hda run ifconfig to see what is your network interface. &lt;br /&gt;
&amp;lt;br&amp;gt;At /etc/racoon/amahi-up-down&amp;lt;/br&amp;gt;      &lt;br /&gt;
I change the lines 19 and 26 from eth0 to em1 because this is the network interface of my Hda. The changes are&lt;br /&gt;
from:&lt;br /&gt;
&amp;lt;br&amp;gt;iptables -t nat -A POSTROUTING -s ${INTERNAL_ADDR4}/32 -o eth0 -j MASQUERADE&amp;lt;/br&amp;gt;&lt;br /&gt;
to&lt;br /&gt;
&amp;lt;br&amp;gt;iptables -t nat -A POSTROUTING -s ${INTERNAL_ADDR4}/32 -o em1 -j MASQUERADE&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and from:&lt;br /&gt;
&amp;lt;br&amp;gt;iptables -t nat -D POSTROUTING -s ${INTERNAL_ADDR4}/32 -o eth0 -j MASQUERADE&lt;br /&gt;
&amp;lt;br&amp;gt;to&lt;br /&gt;
&amp;lt;br&amp;gt;iptables -t nat -D POSTROUTING -s ${INTERNAL_ADDR4}/32 -o em1 -j MASQUERADE&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally I go to http://hda-&amp;gt;Setup-&amp;gt;Settings-&amp;gt;Servers and restart the IPsec VPN Server.&lt;/div&gt;</summary>
		<author><name>Thanasis</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=IPsec_VPN&amp;diff=73316</id>
		<title>IPsec VPN</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=IPsec_VPN&amp;diff=73316"/>
		<updated>2013-09-19T08:08:47Z</updated>

		<summary type="html">&lt;p&gt;Thanasis: /* Forwarding all traffic through the VPN */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;We now have a new [http://www.amahi.org/apps/ipsec-vpn IPsec VPN] app for your HDA!&lt;br /&gt;
&lt;br /&gt;
This VPN stack has many advantages, although it still requires two ports to be forwarded from your router to your HDA. These are&lt;br /&gt;
&lt;br /&gt;
  '''500 UDP''' and '''4500 UDP'''&lt;br /&gt;
&lt;br /&gt;
UDP, not TCP.&lt;br /&gt;
&lt;br /&gt;
Here is how to set up clients for various client operating systems:&lt;br /&gt;
&lt;br /&gt;
* [[IPSec VPN iOS Client | iOS]] (iPad, iPhone, iPod) built-in client&lt;br /&gt;
* [[IPSec VPN Windows Client | Windows 7]]&lt;br /&gt;
* [[IPSec VPN Mac OS X Client | Mac OS X]] built-in client&lt;br /&gt;
* [[IPSec VPN Android Client | Android]] built-in client, (ICS, i.e. 4.x or later)&lt;br /&gt;
&lt;br /&gt;
The Android (2.x/3.x) OS is known to be broken with respect to [http://www.amahi.org/apps/ipsec-vpn IPSec VPN].  See [[IPSEC/L2TP_VPN_Server|here]] for a manual implementation that should work.&lt;br /&gt;
&lt;br /&gt;
= Changing the Secret and/or the Group Name =&lt;br /&gt;
&lt;br /&gt;
Optionally, you can change the secret and/or group name.&lt;br /&gt;
&lt;br /&gt;
For that, you have to be able to edit a system file as root.&lt;br /&gt;
&lt;br /&gt;
Become root via ssh or a terminal and then edit this file:&lt;br /&gt;
&lt;br /&gt;
          /etc/racoon/psk.txt&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
The changes will be picked up automatically a few seconds later. If you want to make sure, perform a:&lt;br /&gt;
&lt;br /&gt;
         service racoon restart&lt;br /&gt;
&lt;br /&gt;
= Route All IPSEC VPN traffic through IPSEC VPN =&lt;br /&gt;
&lt;br /&gt;
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 google-ing &amp;quot;what is my ip&amp;quot; will report back that you are still on the local network.&lt;br /&gt;
&lt;br /&gt;
The Amahi VPN is set to use a split VPN tunnel by default.  If you want to use blocked services while behind somebody's internet filters, you can use these steps to encrypt your traffic and use blocked services like twitter and facebook. &lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
1 Open a terminal on your hda or ssh in.&lt;br /&gt;
2 Go to /etc/racoon (that is spelled correctly BTW)&lt;br /&gt;
{{Code| cd /etc/racoon}}&lt;br /&gt;
3 Back-up the original racoon.conf in case things break&lt;br /&gt;
4 As root, open racoon.conf with your favorite editor, mine happens to be nano&lt;br /&gt;
{{Code| sudo nano racoon.conf}}&lt;br /&gt;
5 down arrow to the mode_cfg&lt;br /&gt;
{{Code| mode_cfg {&lt;br /&gt;
	auth_source system;&lt;br /&gt;
        save_passwd on;&lt;br /&gt;
        network4 10.8.1.1;&lt;br /&gt;
        netmask4 255.255.255.0;&lt;br /&gt;
        pool_size 10;&lt;br /&gt;
        dns4 192.168.1.10;&lt;br /&gt;
        wins4 192.168.1.10;&lt;br /&gt;
        default_domain &amp;quot;Jamahi3.com&amp;quot;;&lt;br /&gt;
        auth_throttle 60;&lt;br /&gt;
        split_network include 198.162.1.0/24 10.100.100.0/24;&lt;br /&gt;
        split_dns &amp;quot;home.com&amp;quot;;&lt;br /&gt;
        banner &amp;quot;/etc/racoon/welcome.txt&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
}}&lt;br /&gt;
note: I'm going to concentrate on the two lines that I changed: &amp;quot;split_network&amp;quot; and &amp;quot;split_dns&amp;quot;.&lt;br /&gt;
6 Change split_network from &amp;quot;include&amp;quot; to &amp;quot;local_lan&amp;quot; and delete the 198.162.... range.&lt;br /&gt;
{{Code| mode_cfg {&lt;br /&gt;
~~&lt;br /&gt;
        split_network local_lan 10.100.100.0/24;      &lt;br /&gt;
}}&lt;br /&gt;
7 I also changed split_dns to the name that I changed my home domain to...&lt;br /&gt;
{{Code| mode_cfg {&lt;br /&gt;
~~&lt;br /&gt;
        split_dns &amp;quot;Jamahi3.com&amp;quot;;&lt;br /&gt;
}}&lt;br /&gt;
8 Save your work&lt;br /&gt;
9 Restart the racoon server&lt;br /&gt;
{{Code| sudo service racoon restart      &lt;br /&gt;
}}&lt;br /&gt;
Or - open up your hda, click on settings&amp;gt;servers and restart the IPSEC server.&lt;br /&gt;
&lt;br /&gt;
Googling &amp;quot;What is My IP&amp;quot; should now report your home VPN.  You should then be able to use twitter and facebook through your VPN.&lt;br /&gt;
&lt;br /&gt;
= Forwarding all traffic through the VPN =&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Solution for IPSec VPN Server in Fedora 19 with Amahi 7 in order to Forward all traffic through the VPN&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
1.	 At /etc/racoon/racoon.conf&amp;lt;/br&amp;gt;&lt;br /&gt;
Delete the 2 lines with split in mode_cfg  :&lt;br /&gt;
&lt;br /&gt;
split_network include 192.168.1.0/24, 10.8.1.0/24;&lt;br /&gt;
&amp;lt;br&amp;gt;split_dns &amp;quot;home.com&amp;quot;;&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2.	At your Hda run ifconfig to see what is your network interface. &lt;br /&gt;
At /etc/racoon/amahi-up-down      &lt;br /&gt;
I change the lines 19 and 26 from eth0 to em1 because this is the network interface of my Hda. The changes are&lt;br /&gt;
from:&lt;br /&gt;
iptables -t nat -A POSTROUTING -s ${INTERNAL_ADDR4}/32 -o eth0 -j MASQUERADE&lt;br /&gt;
to&lt;br /&gt;
iptables -t nat -A POSTROUTING -s ${INTERNAL_ADDR4}/32 -o em1 -j MASQUERADE&lt;br /&gt;
&lt;br /&gt;
and from:&lt;br /&gt;
iptables -t nat -D POSTROUTING -s ${INTERNAL_ADDR4}/32 -o eth0 -j MASQUERADE&lt;br /&gt;
to&lt;br /&gt;
iptables -t nat -D POSTROUTING -s ${INTERNAL_ADDR4}/32 -o em1 -j MASQUERADE&lt;br /&gt;
&lt;br /&gt;
Finally I go to http://hda-&amp;gt;Setup-&amp;gt;Settings-&amp;gt;Servers and restart the IPsec VPN Server.&lt;/div&gt;</summary>
		<author><name>Thanasis</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=IPsec_VPN&amp;diff=73310</id>
		<title>IPsec VPN</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=IPsec_VPN&amp;diff=73310"/>
		<updated>2013-09-19T08:02:25Z</updated>

		<summary type="html">&lt;p&gt;Thanasis: /* Forwarding all traffic through the VPN */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;We now have a new [http://www.amahi.org/apps/ipsec-vpn IPsec VPN] app for your HDA!&lt;br /&gt;
&lt;br /&gt;
This VPN stack has many advantages, although it still requires two ports to be forwarded from your router to your HDA. These are&lt;br /&gt;
&lt;br /&gt;
  '''500 UDP''' and '''4500 UDP'''&lt;br /&gt;
&lt;br /&gt;
UDP, not TCP.&lt;br /&gt;
&lt;br /&gt;
Here is how to set up clients for various client operating systems:&lt;br /&gt;
&lt;br /&gt;
* [[IPSec VPN iOS Client | iOS]] (iPad, iPhone, iPod) built-in client&lt;br /&gt;
* [[IPSec VPN Windows Client | Windows 7]]&lt;br /&gt;
* [[IPSec VPN Mac OS X Client | Mac OS X]] built-in client&lt;br /&gt;
* [[IPSec VPN Android Client | Android]] built-in client, (ICS, i.e. 4.x or later)&lt;br /&gt;
&lt;br /&gt;
The Android (2.x/3.x) OS is known to be broken with respect to [http://www.amahi.org/apps/ipsec-vpn IPSec VPN].  See [[IPSEC/L2TP_VPN_Server|here]] for a manual implementation that should work.&lt;br /&gt;
&lt;br /&gt;
= Changing the Secret and/or the Group Name =&lt;br /&gt;
&lt;br /&gt;
Optionally, you can change the secret and/or group name.&lt;br /&gt;
&lt;br /&gt;
For that, you have to be able to edit a system file as root.&lt;br /&gt;
&lt;br /&gt;
Become root via ssh or a terminal and then edit this file:&lt;br /&gt;
&lt;br /&gt;
          /etc/racoon/psk.txt&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
The changes will be picked up automatically a few seconds later. If you want to make sure, perform a:&lt;br /&gt;
&lt;br /&gt;
         service racoon restart&lt;br /&gt;
&lt;br /&gt;
= Route All IPSEC VPN traffic through IPSEC VPN =&lt;br /&gt;
&lt;br /&gt;
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 google-ing &amp;quot;what is my ip&amp;quot; will report back that you are still on the local network.&lt;br /&gt;
&lt;br /&gt;
The Amahi VPN is set to use a split VPN tunnel by default.  If you want to use blocked services while behind somebody's internet filters, you can use these steps to encrypt your traffic and use blocked services like twitter and facebook. &lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
1 Open a terminal on your hda or ssh in.&lt;br /&gt;
2 Go to /etc/racoon (that is spelled correctly BTW)&lt;br /&gt;
{{Code| cd /etc/racoon}}&lt;br /&gt;
3 Back-up the original racoon.conf in case things break&lt;br /&gt;
4 As root, open racoon.conf with your favorite editor, mine happens to be nano&lt;br /&gt;
{{Code| sudo nano racoon.conf}}&lt;br /&gt;
5 down arrow to the mode_cfg&lt;br /&gt;
{{Code| mode_cfg {&lt;br /&gt;
	auth_source system;&lt;br /&gt;
        save_passwd on;&lt;br /&gt;
        network4 10.8.1.1;&lt;br /&gt;
        netmask4 255.255.255.0;&lt;br /&gt;
        pool_size 10;&lt;br /&gt;
        dns4 192.168.1.10;&lt;br /&gt;
        wins4 192.168.1.10;&lt;br /&gt;
        default_domain &amp;quot;Jamahi3.com&amp;quot;;&lt;br /&gt;
        auth_throttle 60;&lt;br /&gt;
        split_network include 198.162.1.0/24 10.100.100.0/24;&lt;br /&gt;
        split_dns &amp;quot;home.com&amp;quot;;&lt;br /&gt;
        banner &amp;quot;/etc/racoon/welcome.txt&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
}}&lt;br /&gt;
note: I'm going to concentrate on the two lines that I changed: &amp;quot;split_network&amp;quot; and &amp;quot;split_dns&amp;quot;.&lt;br /&gt;
6 Change split_network from &amp;quot;include&amp;quot; to &amp;quot;local_lan&amp;quot; and delete the 198.162.... range.&lt;br /&gt;
{{Code| mode_cfg {&lt;br /&gt;
~~&lt;br /&gt;
        split_network local_lan 10.100.100.0/24;      &lt;br /&gt;
}}&lt;br /&gt;
7 I also changed split_dns to the name that I changed my home domain to...&lt;br /&gt;
{{Code| mode_cfg {&lt;br /&gt;
~~&lt;br /&gt;
        split_dns &amp;quot;Jamahi3.com&amp;quot;;&lt;br /&gt;
}}&lt;br /&gt;
8 Save your work&lt;br /&gt;
9 Restart the racoon server&lt;br /&gt;
{{Code| sudo service racoon restart      &lt;br /&gt;
}}&lt;br /&gt;
Or - open up your hda, click on settings&amp;gt;servers and restart the IPSEC server.&lt;br /&gt;
&lt;br /&gt;
Googling &amp;quot;What is My IP&amp;quot; should now report your home VPN.  You should then be able to use twitter and facebook through your VPN.&lt;br /&gt;
&lt;br /&gt;
= Forwarding all traffic through the VPN =&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Solution for IPSec VPN Server in Fedora 19 with Amahi 7 in order to Forward all traffic through the VPN&lt;br /&gt;
&lt;br /&gt;
1.	 At /etc/racoon/racoon.conf&lt;br /&gt;
Delete the 2 lines with split in mode_cfg  :&lt;br /&gt;
&lt;br /&gt;
split_network include 192.168.1.0/24, 10.8.1.0/24;&lt;br /&gt;
split_dns &amp;quot;home.com&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
2.	At your Hda run ifconfig to see what is your network interface. &lt;br /&gt;
At /etc/racoon/amahi-up-down      &lt;br /&gt;
I change the lines 19 and 26 from eth0 to em1 because this is the network interface of my Hda. The changes are&lt;br /&gt;
from:&lt;br /&gt;
iptables -t nat -A POSTROUTING -s ${INTERNAL_ADDR4}/32 -o eth0 -j MASQUERADE&lt;br /&gt;
to&lt;br /&gt;
iptables -t nat -A POSTROUTING -s ${INTERNAL_ADDR4}/32 -o em1 -j MASQUERADE&lt;br /&gt;
&lt;br /&gt;
and from:&lt;br /&gt;
iptables -t nat -D POSTROUTING -s ${INTERNAL_ADDR4}/32 -o eth0 -j MASQUERADE&lt;br /&gt;
to&lt;br /&gt;
iptables -t nat -D POSTROUTING -s ${INTERNAL_ADDR4}/32 -o em1 -j MASQUERADE&lt;br /&gt;
&lt;br /&gt;
Finally I go to http://hda-&amp;gt;Setup-&amp;gt;Settings-&amp;gt;Servers and restart the IPsec VPN Server.&lt;/div&gt;</summary>
		<author><name>Thanasis</name></author>
		
	</entry>
</feed>