Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    LAN1 LAN2 routing stopped working

    Scheduled Pinned Locked Moved General pfSense Questions
    3 Posts 1 Posters 1.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      Pink
      last edited by

      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.



      1 Reply Last reply Reply Quote 0
      • P
        Pink
        last edited by

        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?

        1 Reply Last reply Reply Quote 0
        • P
          Pink
          last edited by

          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
          
          
          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.