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?
Greg
-
@gregorywest A reverse proxy can do that. Look into HAproxy or Squid reverse proxy.
-
@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.
-
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?
-
@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.comWould 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