NetFilter
[Top] [All Lists]

Re: Allowing hosts to bypass transparent proxy (squid+netfilter) to port

To: netfilter@lists.netfilter.org
Subject: Re: Allowing hosts to bypass transparent proxy (squid+netfilter) to port 80 for a specific netmask
From: Bernardo Vieira <bernardo.vieira@terra.com.br>
Date: Thu, 14 Dec 2006 20:06:08 -0200
Delivered-to: sp-com-lists@consult.net
Delivered-to: netfilter-list1@securepoint.com
In-reply-to: <1166131570.6534.33.camel@andybev.localdomain>
List-archive: </pipermail/netfilter>
List-help: <mailto:netfilter-request@lists.netfilter.org?subject=help>
List-id: General discussion and user questions <netfilter.lists.netfilter.org>
List-post: <mailto:netfilter@lists.netfilter.org>
List-subscribe: <https://lists.netfilter.org/mailman/listinfo/netfilter>, <mailto:netfilter-request@lists.netfilter.org?subject=subscribe>
List-unsubscribe: <https://lists.netfilter.org/mailman/listinfo/netfilter>, <mailto:netfilter-request@lists.netfilter.org?subject=unsubscribe>
Openpgp: id=3B1AD664
References: <4581B8A6.4080504@terra.com.br> <1166131570.6534.33.camel@andybev.localdomain>
Sender: netfilter-bounces@lists.netfilter.org
User-agent: Thunderbird 1.5.0.7 (Windows/20060909)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Andy,
Thanks for your reply. That rule did allow me to bypass the proxy, the
java app I'm supposed to run still doens't work, but now I'm conviced
It's not my gateway messing it up.

That diagram really kicks ass! :)

Thanks!

Bernardo

Andrew Beverley wrote:
> Sorry for the top posting but it's a big message...
> 
> How about trying
> 
> -A PREROUTING -i ! eth0 -p tcp -m tcp --dport 80 -d \
> 200.201.160.0/255.255.240.0 -j ACCEPT
> 
> directly *before* the rule to direct hosts to squid.
> 
> The other rule you noted is a FORWARD rule which is processed *after*
> the PREROUTING rule you use for squid, so by the time the packets get to
> that rule they've already been grabbed by squid.
> 
> The following link is an excellent diagram to appreciate the routing
> order - it would be nice to see this on the netfilter homepage!
> 
> http://www.docum.org/docum.org/kptd/
> 
> Andy Beverley
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFgcrQ2QVs8jsa1mQRAjRkAJ41dcrz2nApIuNGXHObr6hJlw5JrACfS0Is
yW/TDJciO/9bLdH6og3ESc4=
=ygI0
-----END PGP SIGNATURE-----


<Prev in Thread] Current Thread [Next in Thread>