Hi,
I have installed amahi 7 with fedora19.
I installed the application IPsec and everything works fine.
this is the racoon.conf:
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 "home.com";
auth_throttle 60;
split_network include 192.168.1.0/24, 10.8.1.0/24;
split_dns "home.com";
banner "/etc/racoon/welcome.txt";
}
If i follow the wiki:https://wiki.amahi.org/index.php/IPsec_VPN in order to route all traffic through the ipsec vpn i must have this:
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 "home.com";
auth_throttle 60;
split_network local_lan 10.8.1.0/24;
split_dns "home.com";
banner "/etc/racoon/welcome.txt";
}
Ok?
But with this configuration i can't connet with vpn.
Can anyone help me with this?
IPsec VPN route traffic through vpn issue
Re: IPsec VPN route traffic through vpn issue
Solution for IPSec VPN Server in Fedora 19 with Amahi 7
1. At /etc/racoon/racoon.conf
Delete the 2 lines with split in mode_cfg :
split_network include 192.168.1.0/24, 10.8.1.0/24;
split_dns "home.com";
2. At /etc/racoon/amahi-up-down
I change the lines 19 and 26 from eth0 to em1 because this is the network interface of my hda. I found it running ifconfig in my hda. The changes are
from:
iptables -t nat -A POSTROUTING -s ${INTERNAL_ADDR4}/32 -o eth0 -j MASQUERADE
to
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
to
iptables -t nat -D POSTROUTING -s ${INTERNAL_ADDR4}/32 -o em1 -j MASQUERADE
Finally I go to http://hda->Setup->Settings->Servers and restart the IPsec VPN Server.
1. At /etc/racoon/racoon.conf
Delete the 2 lines with split in mode_cfg :
split_network include 192.168.1.0/24, 10.8.1.0/24;
split_dns "home.com";
2. At /etc/racoon/amahi-up-down
I change the lines 19 and 26 from eth0 to em1 because this is the network interface of my hda. I found it running ifconfig in my hda. The changes are
from:
iptables -t nat -A POSTROUTING -s ${INTERNAL_ADDR4}/32 -o eth0 -j MASQUERADE
to
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
to
iptables -t nat -D POSTROUTING -s ${INTERNAL_ADDR4}/32 -o em1 -j MASQUERADE
Finally I go to http://hda->Setup->Settings->Servers and restart the IPsec VPN Server.
Re: IPsec VPN route traffic through vpn issue
Thanks for adding this to the wiki. For others, it is located below:
https://wiki.amahi.org/index.php/IPsec_VPN
https://wiki.amahi.org/index.php/IPsec_VPN
ßîgƒσστ65
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
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 47 guests