Thanks for reply but i tried before: http_port 127.0.0.1:3128 transparent http_port 192.168.0.1:3128 transparent
but not worked. I tried different ip tables rules like below: iptables -t nat -A PREROUTING -p tcp -i $INTIF --dport 80 -j DNAT --to 192.168.0.1:8080 but no worked. When i configure web browser manually(http proxy 192.168.0.1 and port 8080), and remove iptables rule (iptables -t nat -A PREROUTING -p tcp -i $INTIF -s 192.168.0.0/24 --dport 80 -j REDIRECT --to-port 8080 ) , it works. But why do not squid works with redirect iptables rule.I dont understand. I suppose,problem is url because web browser error page is like this: ERROR The requested URL could not be retrived While trying to retrive the URL: /2007/11/14/guncel/?ver=0 but real website adress is www.milliyet.com.tr/2007/11/14/guncel/?ver=0 what do you think about this ? Thanks. On 14/11/2007, Mihira Fernando <[EMAIL PROTECTED]> wrote: > > Semih Gokalp wrote: > > I am sorry for asking question to debian list about dansguardian. > > I am using dansguardian + squid3 + clamav but i have a problem. > [snip] > > 2)And configured squid like below: > > > > http_port 3128 transparent > Try giving the IP:Port notation like this : > > http_port 127.0.0.1:3128 transparent > http_port 192.168.0.1:3128 transparent > > [snip] > > > iptables -t nat -A PREROUTING -p tcp -i $INTIF -s 192.168.0.0/24 > > <http://192.168.0.0/24> --dport 80 -j REDIRECT --to-port 8080 > Suggest you leave the -s parameter out until your setup is working. > > Mihira. > -- > Random Quotes From Megas XLR > Coop: You see? The mysteries of the Universe are revealed when you break > stuff. > Jamie: When in doubt, blow up a planet. > Kiva: It's an 80 foot robot, if we can't see it, absolutely it's not here. > Glorft Technician: Unnecessary use of force in capturing the Earthers has > been > approved. > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact > [EMAIL PROTECTED] > > -- Iyi calismalar.Basarilar... Semih Gokalp Istanbul/Turkiye