Possible Duplicate:
Is there a way to forward a port based on subdomain?
wOk here is what I need to do:
Listen on various ports and route to LAN IP addresses based on url and port.
So I have a number of domain names assigned to the same IP address and I need to redirect based on url–
Server1.domain.com:5902 --> 192.168.0.100:5902 Server2.domain.com:5902 --> 192.168.0.101:5902 Server1.domain.com:23 --> 192.168.0.110:23 Server2.domain.com:23 --> 192.168.0.111:23
I have an IIS server that does this kind of thing fine for http stuff but other ports are bupkis.
Can this be done sith squid or iptables or ????