Re: [squid-users] squid transparent proxy still not working

From: Indunil Jayasooriya <indunil75@dont-contact.us>
Date: Tue, 12 Feb 2008 09:16:07 +0530

> and this is my iptables for squid transparent
> iptables -t nat -A PREROUTING -i eth0 -s 192.168.10.10
> -p tcp --dport 80 -j ACCEPT

> iptables -t nat -A PREROUTING -i eth1 -s 192.168.10/24
> -p tcp --dport 80 -j REDIRECT --to-port 8080

what is this ? -s 192.168.10/24 it should be -s 192.168.10.0/24

> iptables -t filter -A FORWARD -i eth1 -s 192.168.10/24
> -p tcp --dport 80 -j REJECT

again , what is this ? -s 192.168.10/24 it should be s 192.168.10.0/24
and i think -j ACCEPT instaed of j REJECT.

So, here are the rules again.

iptables -t nat -A PREROUTING -i eth1 -s 192.168.10.0/24
 -p tcp --dport 80 -j REDIRECT --to-port 8080

 iptables -t filter -A FORWARD -i eth1 -s 192.168.10.0/24
 -p tcp --dport 80 -j ACCEPT

iptables -A INPUT -i eth1 -d 192.168.10.10 -p tcp -s
 192.168.101.0/24 --dport 8080 -j ACCEPT

try below URL,

http://www.squid-cache.org/mail-archive/squid-users/200708/0232.html

>
> what wrong with my squid.conf or iptables rules?
> why transparent proxy not working, & why client must
> setting using proxy in their browser if the want
> using proxy
>
> thaks
>
> regards
> ason
> Cah Kopeng
> Lereng Utara Gunung Merbabu
>
>
> ____________________________________________________________________________________
> Never miss a thing. Make Yahoo your home page.
> http://www.yahoo.com/r/hs
>

-- 
Thank you
Indunil Jayasooriya
Received on Mon Feb 11 2008 - 20:46:11 MST

This archive was generated by hypermail pre-2.1.9 : Sat Mar 01 2008 - 12:00:05 MST