Iptables with Squid Proxy
Hello!
I have created a topology with 3 hosts (clien, squid-proxy and server).
When I try to download any file from server (wget), while squid isn't active everything works fine, but once I forward traffic to squid proxy with command "iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 3128" on squid-proxy host, the wget command gives ERROR 503: Service Unavailable message.
Interfaces on hosts:
client: eth1 192.168.1.2
squid-proxy: eth1 192.168.30.3, eth2 192.168.31.3
server: eth1 192.168.2.2
When I use tcpdump on server, I can notice the request arrives to server "192.168.31.2.60060 > server.http: Flags [S]" but it doesn't send any response.
Any idea how to fix that?
|