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

Outbound NAT to a specific URL

NAT
2
5
410
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 Mar 2, 2023, 4:13 PM

    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 Mar 2, 2023, 4:17 PM Reply Quote 0
    • V
      viragomann @AKessler
      last edited by Mar 2, 2023, 4:17 PM

      @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 Mar 2, 2023, 4:28 PM Reply Quote 0
      • A
        AKessler @viragomann
        last edited by AKessler Mar 2, 2023, 4:29 PM Mar 2, 2023, 4:28 PM

        @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 Mar 2, 2023, 4:50 PM Reply Quote 0
        • V
          viragomann @AKessler
          last edited by Mar 2, 2023, 4:50 PM

          @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 Mar 2, 2023, 4:51 PM Mar 2, 2023, 4:50 PM

            @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
            5 out of 5
            • First post
              5/5
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.