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

    Dynamic URL routing from WAN to LAN

    Scheduled Pinned Locked Moved Routing and Multi WAN
    5 Posts 3 Posters 557 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.
    • G
      gregorywest
      last edited by

      Is it possible for PFSense to take the incoming URL and use it to route traffic to a particular server? What I am looking for is external WAN clients hitting the firewall with something.myurl.com routed to server2, and other clients coming into somthingelse.myurl.com to be routed to server3. Both of these routes might or might not be using the same IP Ports, so using 'port forwarding' would not work.

      Is something like this even possible?

      Greg

      KOMK bingo600B 2 Replies Last reply Reply Quote 0
      • KOMK
        KOM @gregorywest
        last edited by

        @gregorywest A reverse proxy can do that. Look into HAproxy or Squid reverse proxy.

        G 1 Reply Last reply Reply Quote 0
        • G
          gregorywest @KOM
          last edited by

          @kom Can a reverse proxy do that for every port, or just certain ports? For some reason I was under the impression that a reverse proxy could only handle ports < 1024.

          1 Reply Last reply Reply Quote 0
          • G
            gregorywest
            last edited by

            I took a look at HAProxy and Squid. Not gotten too deep into either one of them yet. Through out the examples and explanation both are always talking about routing HTTP and HTTPS traffic. The issue I have is 90% of my traffic is not HTTP or HTTPS traffic. It is a mixed bag of specialty packet types from HTTP, or FTP, SIP, IAX, VNC etc.

            Am I missing something fundamental here, or is everything talking HTTP / HTTPS simply because that is the most common?

            1 Reply Last reply Reply Quote 0
            • bingo600B
              bingo600 @gregorywest
              last edited by

              @gregorywest said in Dynamic URL routing from WAN to LAN:

              Is it possible for PFSense to take the incoming URL and use it to route traffic to a particular server? What I am looking for is external WAN clients hitting the firewall with something.myurl.com routed to server2, and other clients coming into somthingelse.myurl.com to be routed to server3. Both of these routes might or might not be using the same IP Ports, so using 'port forwarding' would not work.
              Is something like this even possible?

              Do you have (or can order) multiple "Public ip addresses" for the firewall :
              And then assign different ip's to :
              something.myurl.com
              and
              somthingelse.myurl.com

              Would make your life much easier.

              Remember that w. some of the mentioned programe. Ie. FTP
              the client might not even xfer the url , just resolve locally , and connect to that "remote ip".

              /Bingo

              If you find my answer useful - Please give the post a šŸ‘ - "thumbs up"

              pfSense+ 23.05.1 (ZFS)

              QOTOM-Q355G4 Quad Lan.
              CPUĀ  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
              LANĀ  : 4 x Intel 211, DiskĀ  : 240G SAMSUNG MZ7L3240HCHQ SSD

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