transparenting proxy with squid
(i'm new to linux)
I have followed 2 similar how-to's on making a transparent proxy using squid. Currently squid is working fine, but it's not transparent yet.
I get my internet from a pppoe dailup, to be shared/proxied to 2 pc's on local network.
According to the how-to's, the last step is to do this:
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128
The settings is right, as far as I can see. The network device is eth0, and squid is running on 3128.
I have checked the iptable with "iptables -t nat -L", and it looks like the how-to wants it.
But nothing happens when I try to surf on a client computer. (have set the client pc's gateway to the squid pc, and selected 'direct internet' inside firefox).
I think the problem may be with iptables. I am having trouble making it log what it's doing. As I understand it, I should add this:
iptables -A INPUT -p tcp --sport 80 -j LOG
and then, the log should appear in /var/log/messages?
|