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

    Static route on a multi-wan

    Scheduled Pinned Locked Moved Routing and Multi WAN
    5 Posts 2 Posters 2.4k 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.
    • D Offline
      drdyno
      last edited by

      I am trying to setup a single box on my network to use a specific ip from out multi-wan setup. I have tried setting up an LAN rule to do this but with out success. Can anyone point me in the right direction to accomplish this?

      Thanks in advance.
      Dyno

      1 Reply Last reply Reply Quote 0
      • G Offline
        Gob
        last edited by

        hi
        to clarify, you want one machine on your LAN to appear to be using a public IP that differs to your default WAN IP for outbound traffic?
        try using 1:1 NAT.

        gordon

        If I fix one more thing than I break in a day, it's a good day!

        1 Reply Last reply Reply Quote 0
        • D Offline
          drdyno
          last edited by

          Kind of I want one machine on my LAN (ex. 192.168.1.101) to only use my WAN ip address and not load balance.

          1 Reply Last reply Reply Quote 0
          • G Offline
            Gob
            last edited by

            ah - right.
            You need policy based routing.
            http://doc.pfsense.org/index.php/What_is_policy_routing%3F

            Create a firewall rule at the top of your LAN rules with:
            Action: pass
            Interface: lan
            protocol: any
            source: 192.168.1.101
            destination: any
            gateway: default (or gateway IP of the specific WAN interface you want the traffic to go out on)

            NOTE: this rule must be above the LAN rule that routes traffic out through your loadbalancer.

            If I fix one more thing than I break in a day, it's a good day!

            1 Reply Last reply Reply Quote 0
            • D Offline
              drdyno
              last edited by

              THANK YOU!!!!!

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