Hello,
I am trying to setup redundant site-to-site vpn tunnels. I have problems about adding spd to ipsec.conf on FreeBSD 10.1
I use racoon for ike daemon. I have two PPPoE gateways gw1 ip address is a.a.a.a and gw2 is b.b.b.b
ipsec.conf:
Subnets are same, but peers are different. When i start ipsec service i got these errors,
I understand that ipsec kernel module can't decide to choose which sp must be used. Because subnets are overlapping.
I have made a little(not little spent days
) search and found that Linux kernel + strongswan can handle these case with tagging packets on firewall, and adding spds by these tags. So IPSec module does not confused about which to choose; each traffic has different tags.
I am stuck in here. Do I miss something or just hit the limitations of the FreeBSD IPSec implementation? Can somebody lead me the way please ?
I am trying to setup redundant site-to-site vpn tunnels. I have problems about adding spd to ipsec.conf on FreeBSD 10.1
I use racoon for ike daemon. I have two PPPoE gateways gw1 ip address is a.a.a.a and gw2 is b.b.b.b
ipsec.conf:
Code:
flush;
spdflush;
spdadd 192.168.12.0/16 192.168.14.0/24 any -P out ipsec esp/tunnel/a.a.a.a-x.y.z.v/require;
spdadd 192.168.14.0/24 192.168.12.0/16 any -P in ipsec esp/tunnel/x.y.z.v-a.a.a.a/require;
spdadd 192.168.12.0/24 192.168.14.0/24 any -P out ipsec esp/tunnel/b.b.b.b-x.y.z.v/require;
spdadd 192.168.14.0/24 192.168.12.0/24 any -P in ipsec esp/tunnel/x.y.z.v-b.b.b.b/require;
Subnets are same, but peers are different. When i start ipsec service i got these errors,
Code:
#service ipsec onestart
Clearing ipsec manual keys/policies.
Installing ipsec manual keys/policies.
The result of line 6: File exists.
The result of line 7: File exists.
I understand that ipsec kernel module can't decide to choose which sp must be used. Because subnets are overlapping.
I have made a little(not little spent days

I am stuck in here. Do I miss something or just hit the limitations of the FreeBSD IPSec implementation? Can somebody lead me the way please ?