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

    Outbound NAT to a specific URL

    NAT
    2
    5
    409
    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.
    • A
      AKessler
      last edited by

      Hello all,
      I am trying to figure out how to assign a specific outbound IP address on my WAN when local network users visit a particular web site. I know how to establish outbound NAT for a network but not sure how to use it only when LAN users route to a particular url. I'm not even sure it is possible.

      Thanks.

      V 1 Reply Last reply Reply Quote 0
      • V
        viragomann @AKessler
        last edited by

        @akessler
        In the outbound NAT rule you can use networks, single IPs or aliases, all in CIDR notation. So for single IPs and aliases set a /32 network mask.

        A 2 Replies Last reply Reply Quote 0
        • A
          AKessler @viragomann
          last edited by AKessler

          @viragomann
          I may be missing something but I do not think this solves my problem. You are defining a simple outbound NAT rule either for a network or a single host. I am asking if it is possible (and how) to assign an Outbound NAT rule when browsing to a specific external URL. I have created an alias for the URL which pfSense has accepted. I do not see how to apply that to the Outbound NAT rule.

          V 1 Reply Last reply Reply Quote 0
          • V
            viragomann @AKessler
            last edited by

            @akessler
            You can state this alias as destination in the outbound NAT rule as mentioned above.

            1 Reply Last reply Reply Quote 0
            • A
              AKessler @viragomann
              last edited by AKessler

              @viragomann
              Just wanted to let you know I was able to get this done. I remember a long time ago a list of aliases would show up in some of the fields (since I am using the GUI). I modified the alias to be hosts and that worked when I added the alias as the destination in the Outbound NAT rule.
              Thank you for your input.

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