LAN1 LAN2 routing stopped working



  • I'm using pfsense between two LANs.  192.168.2.0 –- pfsense --- 192.168.3.0
    It worked last night, then I shut down the 192.168.3.100 interface on pfsense.  This morning I enabled the interface and I can't communicate between LANs anymore.

    Subnet 3 client can ping both pfsense interfaces but not subnet 2 client.
    Subnet 2 clinet can ping local pfsense interface but no further.
    Pfsense can ping both subnet clients.





  • Sorry, I found the problem was on the subnet 2 client.  When the client restarted it began to work again.  The reason was, the client has two network adapters.  Everything works while the pfsense connected adapter is the only one connected.  When the client's second adapter is up, the second gateway overwrites the gateway from the pfsense connected adapter in the client route table.

    Client routing table 192.168.2.128
    Before with only pfsense adapter enabled on client.

    Destination    Gateway        Genmask        Flags Metric Ref    Use Iface
    0.0.0.0        192.168.2.100  0.0.0.0          UG    0      0        0 eth0
    192.168.2.0    0.0.0.0        255.255.255.0  U    0      0        0 eth0

    After with both pfsense and wireless adapter enabled on client.

    
    Destination     Gateway         Genmask            Flags Metric Ref    Use Iface
    0.0.0.0         192.168.0.1     0.0.0.0               UG     0       0        0 wlan1
    192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 wlan1
    192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
    
    

    I'm rusty on my networking, but I tried the following with no luck.  Maybe a metric related issue?
    route add 192.168.2.0 gw 192.168.2.100 eth0

    Any suggestions?



  • Ok got it fixed. On the client 192.168.2.128 add this route:

    
    route add 192.168.2.0 gw 192.168.2.100 eth0
    and
    route add 192.168.3.0 gw 192.168.2.100 eth0
    
    

Log in to reply