Kyle Harris wrote:
I'm not sure if Squid is the best way to do what I need but if not,
hopefully someone can point me in the right direction. I have a dual-homed
Linux server that uses iptables as a firewall and to redirect web traffic to
an internal web server via an iptables prerouting rule. All is fine with
that. What I need is a little more control of what gets routed to where.
For example, if an HTTP request comes in for pc1.mydomain.com I would like
to send it to an internal web server on IP address 10.1.1.1. If an HTTP
request comes in for pc2.mydomain.com, I would like to send it to 10.1.1.2.
I can't see a way to do that with just iptables and one external IP address
so I am hoping that perhaps Squid can be used to assist. I have been
reading about Squid redirectors, but I cant figure out how to use them for
inbound HTTP traffic or if it is even possible. If not, perhaps there is a
better way to accomplish this?
Thank you in advance for any assistance.
Hi,
What you are looking for is a reverse proxy and squid can handle this
with ease. There is an example here:
http://www.sweetnam.eu/index.php/Reverse_Proxy_with_Squid
Hope this helps
Frog.