Hello.
There is a simple network with two gateways, each gateway one interface connected to the Internet (em1 interfaces) to a local area network (em0 interfaces).
FreeBSD01:
Installed tunnel (gif0) between two external interfaces.
Installed and configured racoon, properly configured IPSec.
When I run on freebsd01 command:
in another terminal at
At
Incoming packets are not encapsulated in strange ways.
If disable IPSec example command [CMD=]setkey -PF[/CMD]all works well.
If you disable IPSec for example the command setkey-PF all works well.
That is not in freebsd 6, but it appeared to freebsd 7 and 8 versions.
Perhaps there is a solution?
Thank you.
There is a simple network with two gateways, each gateway one interface connected to the Internet (em1 interfaces) to a local area network (em0 interfaces).
FreeBSD01:
Code:
freebsd01# ifconfig
em0: inet 192.168.192.151 netmask 0xffffff00 broadcast 192.168.192.255
em1: inet 10.0.0.1 netmask 0xff000000 broadcast 10.255.255.255
lo0: inet 127.0.0.1 netmask 0xff000000
gif0: tunnel inet 10.0.0.1 -> 10.10.10.1
inet 192.168.192.151 -> 192.168.194.1 netmask 0xffffffff
Code:
freebsd02# ifconfig
em0: inet 192.168.194.1 netmask 0xffffff00 broadcast 192.168.194.255
em1: inet 10.10.10.1 netmask 0xff000000 broadcast 10.255.255.255
lo0: inet 127.0.0.1 netmask 0xff000000
gif0: tunnel inet 10.10.10.1 -> 10.0.0.1
inet 192.168.194.1 -> 192.168.192.151 netmask 0xffffffff
Installed tunnel (gif0) between two external interfaces.
Installed and configured racoon, properly configured IPSec.
When I run on freebsd01 command:
ping -S 192.168.192.151 192.168.194.1
in another terminal at
Code:
freebsd01 # tcpdump-pni gif0
IP192.168.192.151> 192.168.194.1: ICMP echo request, id 50693, seq 14, length 64
IP 10.10.10.1> 10.0.0.1: IP 192.168.194.1> 192.168.192.151: ICMP echo reply, id 50693, seq 14, length 64 (ipip-proto-4)
At
Code:
freebsd02 # tcpdump-pni gif0
IP 10.0.0.1> 10.10.10.1: IP 192.168.192.151> 192.168.194.1: ICMP echo request, id 50693, seq 150, length 64 (ipip-proto-4)
IP 192.168.194.1> 192.168.192.151: ICMP echo reply, id 50693, seq 150, length 64
If disable IPSec example command [CMD=]setkey -PF[/CMD]all works well.
If you disable IPSec for example the command setkey-PF all works well.
That is not in freebsd 6, but it appeared to freebsd 7 and 8 versions.
Perhaps there is a solution?
Thank you.