Squid question

Tim Wunder tim
Mon May 17 11:57:15 PDT 2004


This doesn't seem to work for me.
I did:
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 
3128

However, if I change my browser settings to use a direct connection to the 
internet, the proxy server is bypassed.

# iptables -L -t nat
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination
REDIRECT   tcp  --  anywhere             anywhere           tcp dpt:http redir 
ports 3128

Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

On Monday 22 December 2003 11:42 pm, someone claiming to be M.W. Chang wrote:
> just use iptables to redirect port 80 to 3128 will do:
>
> iptables -t nat -A PREROUTING -i $INTIF -p tcp --dport 80 -j REDIRECT
> --to-port 3128
>
> where $INTIF is the internal interface.
>
> > Doesn't look like I can use transparent proxy with the squid package
> > provided by Fedora. At least the instructions I found at tldp didn't
> > work. :-(

-- 
Fedora Core 1, Kernel 2.4.22-1.2129.nptl,  KDE 3.1.4, Xfree86 4.3.0
 09:25:01  up 14 days, 12:14,  3 users,  load average: 0.08, 0.17, 0.28
It's what you learn after you know it all that counts



More information about the Linux-users mailing list