Solved Routing networks via 2 FreeBSD gateways

Hello,

I'm trying to make the following routing:

Code:
fbsd3               fbsd1               fbsd2               fbsd4
172.16.2.73 ------- 172.16.2.71         172.16.3.72 ------- 172.16.3.74
                    172.16.1.71 ------- 172.16.1.72

The problem is that 172.16.3.74 (fbsd4) can't connect 172.16.2.73 (fbsd3) and vice versa.

The following connections are successful in both directions:
172.16.2.73 (fbsd3) <---> 172.16.1.72 (fbsd2)
172.16.3.74 (fbsd4) <---> 172.16.1.71 (fbsd1)

Can't understand where the problem is. Please help.

For example:
fbsd3:~ # ping 172.16.3.74
fbsd1:~ # tcpdump -i em3
02:15:33.638800 IP 172.16.2.73 > 172.16.3.74: ICMP echo request, id 30473, seq 12, length 64


fbsd1 receives packet, but does not forward it to 172.16.1.72
I could not find it on any interface out.
With ipfw rule on fbsd1 count log icmp from any to any I see only incoming, but not outgoing packet.

Here are routing tables

Code:
fbsd1:
net.inet.ip.forwarding: 1
default            192.168.1.254      UGS         em0
127.0.0.1          link#5             UH          lo0
172.16.1.0/24      link#3             U           em2
172.16.1.71        link#3             UHS         lo0
172.16.2.0/24      link#4             U           em3
172.16.2.71        link#4             UHS         lo0
172.16.3.0/24      172.16.1.72        UGS         em2
192.168.1.0/24     link#1             U           em0
192.168.1.171      link#1             UHS         lo0

fbsd2:
net.inet.ip.forwarding: 1
127.0.0.1          link#4             UH          lo0
172.16.1.0/24      link#2             U           em1
172.16.1.72        link#2             UHS         lo0
172.16.2.0/24      172.16.1.71        UGS         em1
172.16.3.0/24      link#3             U           em2
172.16.3.72        link#3             UHS         lo0
172.18.1.2         link#6             UHS         lo0
192.168.56.0/24    link#1             U           em0
192.168.56.72      link#1             UHS         lo0

fbsd3:
default            172.16.2.71        UGS         em1
127.0.0.1          link#3             UH          lo0
172.16.2.0/24      link#2             U           em1
172.16.2.73        link#2             UHS         lo0
192.168.56.0/24    link#1             U           em0
192.168.56.73      link#1             UHS         lo0

fbsd4:
default            172.16.3.72        UGS         em1
127.0.0.1          link#3             UH          lo0
172.16.3.0/24      link#2             U           em1
172.16.3.74        link#2             UHS         lo0
192.168.56.0/24    link#1             U           em0
192.168.56.74      link#1             UHS         lo0
 
Back
Top