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

    Pfsense and Static Route

    Off-Topic & Non-Support Discussion
    2
    5
    2.5k
    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.
    • F
      francesco.gabriele
      last edited by

      hi guys, i've a problem and i cannot understand how to fix it: i've a firewall with 2 wan, one as default. Rules has been configured for single ip, and in every ip i specify the gateway to use, so some ips have the default and some other have the second. Everything works fine but static rules works only for the ips whic have the default gateway. Anyone Does know why this happen?

      Pfsense Version 2.0.1-RELEASE

      1 Reply Last reply Reply Quote 0
      • marcellocM
        marcelloc
        last edited by

        You need rules to follow static routes before rules with specific gateway.

        When you add a rule forcing gateway, it will ignore routing table as you are forcing a route for it.

        Treinamentos de Elite: http://sys-squad.com

        Help a community developer! ;D

        1 Reply Last reply Reply Quote 0
        • F
          francesco.gabriele
          last edited by

          Thanks for the help

          can you show me how to make the rule?

          example

          1. Wan1 192.168.10.1
          2. Wan2 192.168.20.1
          3. StaticĀ  192.168.13.0 gw 192.168.10.1
          4. Rules Sorce ip 192.168.30.10 gw 192.168.20.1
          1 Reply Last reply Reply Quote 0
          • marcellocM
            marcelloc
            last edited by

            just allow the traffic you want on remote destination without setting a gatway.

            Treinamentos de Elite: http://sys-squad.com

            Help a community developer! ;D

            1 Reply Last reply Reply Quote 0
            • F
              francesco.gabriele
              last edited by

              Thanks it worked, I wish you a Merry Christmas

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