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

    Static route not directing traffic to non-default gateway

    Scheduled Pinned Locked Moved Routing and Multi WAN
    4 Posts 2 Posters 2.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
      pffan
      last edited by

      I have two pfSense 2.0 boxes and I'm having a hard time getting a static route working.

      Here is a diagram of my network.

      I am trying to access resources on the 192.168.215.0 /24 network from the 192.168.0.0 /24 network.  I have set the wan port on pfSense1 as a gateway on pfSense0 and also added static route that's supposed to direct traffic destined for 192.168.215.0 /24 through 192.168.11.13 (WAN on pfSense1).


      Needless to say it's not working.  Traffic destined for 192.168.215.10 is being directed to the default gateway instead of the WAN port on pfSense1.  It's like the routing table entry for the .215 network doesn't exist.  I just don't get it.

      All these images show statuses on pfSense0.

      1 Reply Last reply Reply Quote 0
      • R
        rainer_d
        last edited by

        Hello,

        I have a similar problem.
        netstat -rn shows that the static route exists.
        But the firewall logs show that the traffic goes through the default gateway (or tries to).
        Both the static route and the default gateway are on the WAN-side.

        pfSense (2.0) is acting as an OpenVPN gateway.

        Any help on this?

        1 Reply Last reply Reply Quote 0
        • R
          rainer_d
          last edited by

          One of those "D'oh!"-moments.

          In the Advanced-settings, there is an entry for "Bypass firewall rules for traffic on the same interface".
          That helped a lot.

          Best Regards,
          Rainer

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

            D'oh, indeed.

            Thank you.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.