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

    Trying to Force a server to use a different gateway.

    Scheduled Pinned Locked Moved Off-Topic & Non-Support Discussion
    4 Posts 3 Posters 534 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.
    • F
      fr334fr4nk
      last edited by

      I'm using a pfsense firewall on my network with two gateways we will call them Primary and failover. I have one server that needs to run on the failover gateway. I tried to create a LAN firewall rule that redirects that server to the failover gateway but it seems to fail. I'm newish to pfsense and need some help to figure this out.

      I created a top rule on my LAN network with

      Action PASS
      Interface LAN
      Protocol ANY
      Source <that servers ip address>
      Destination ANY
      Gateway failover

      but that server is still using the primary gateway for the firewall and not the failover.

      Any suggestions on how to go about doing this?

      1 Reply Last reply Reply Quote 0
      • dotdashD
        dotdash
        last edited by

        The syntax is fine. If it is the first rule on the LAN, then try clearing the states. Also check the order and status of your gateway group.

        1 Reply Last reply Reply Quote 1
        • F
          fr334fr4nk
          last edited by

          Thanks dotsash that fixed it for me.

          provelsP 1 Reply Last reply Reply Quote 0
          • provelsP
            provels @fr334fr4nk
            last edited by provels

            @fr334fr4nk Can you just hard code the IP of the server to use the failover gateway. It's only one.

            Disregard, I read "doesn't fix it for me"

            Peder

            MAIN - pfSense+ 24.11-RELEASE - Adlink MXE-5401, i7, 16 GB RAM, 64 GB SSD. 500 GB HDD for SyslogNG
            BACKUP - pfSense+ 23.01-RELEASE - Hyper-V Virtual Machine, Gen 1, 2 v-CPUs, 3 GB RAM, 8GB VHDX (Dynamic)

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