Hello everyone,
I'm trying to build my first VPN tunnel between 2 gateways, both running FreeBSD 11.1.
my question, is this manual still consistent?
Making a tunnel - its easy,but when I try to apply encryption as it shown in handbook - tunnel stops working ...
according to that manual ipsec.conf on host1(public IP - A.B.C.D) and host 2 (oublic ip W.X.Y.Z)
host1:
host2:
both machines has appropriate ip key pair in psk.txt
the problem is that right after I run on both machines :
tunnel stops working. tcpdump shows nothing. Literally no packets passing thew gif0 nor between A.B.C.D W.X.Y.Z
What am I doing wrong ?
Thanks
I'm trying to build my first VPN tunnel between 2 gateways, both running FreeBSD 11.1.
my question, is this manual still consistent?
Making a tunnel - its easy,but when I try to apply encryption as it shown in handbook - tunnel stops working ...
according to that manual ipsec.conf on host1(public IP - A.B.C.D) and host 2 (oublic ip W.X.Y.Z)
host1:
Code:
spdadd A.B.C.D/32 W.X.Y.Z/32 ipencap -P out ipsec esp/tunnel/A.B.C.D-W.X.Y.Z/require;
spdadd W.X.Y.Z/32 A.B.C.D/32 ipencap -P in ipsec esp/tunnel/W.X.Y.Z-A.B.C.D/require;
host2:
Code:
spdadd W.X.Y.Z/32 A.B.C.D/32 ipencap -P out ipsec esp/tunnel/W.X.Y.Z-A.B.C.D/require;
spdadd A.B.C.D/32 W.X.Y.Z/32 ipencap -P in ipsec esp/tunnel/A.B.C.D-W.X.Y.Z/require;
both machines has appropriate ip key pair in psk.txt
the problem is that right after I run on both machines :
# setkey -f ipsec.conf
tunnel stops working. tcpdump shows nothing. Literally no packets passing thew gif0 nor between A.B.C.D W.X.Y.Z
What am I doing wrong ?
Thanks