[tproxy] Squid with tproxy extra brief FAQ - take 3

Eduardo Schoedler eschoedler at viavale.com.br
Fri Mar 7 17:40:54 CET 2008


Just one thing I've forgot...
Why can't I download from inside my linux/tproxy/squid box ?


 # wget http://gentoo.osuosl.org/snapshots/portage-20080229.tar.bz2
--19:59:40--  http://gentoo.osuosl.org/snapshots/portage-20080229.tar.bz2
           => `portage-20080229.tar.bz2'
Resolving gentoo.osuosl.org... 140.211.166.134
Connecting to gentoo.osuosl.org|140.211.166.134|:80... failed: Connection
timed out.
Retrying.

--19:59:43--  http://gentoo.osuosl.org/snapshots/portage-20080229.tar.bz2
  (try: 2) => `portage-20080229.tar.bz2'
Connecting to gentoo.osuosl.org|140.211.166.134|:80...


Here's my ebtables rules:

Bridge chain: BROUTING, entries: 2, policy: ACCEPT
-p IPv4 -i eth1 --ip-proto tcp --ip-dport 80 -j redirect  --redirect-target
DROP
-p IPv4 -i eth0 --ip-proto tcp --ip-sport 80 -j redirect  --redirect-target
DROP


... and here my iptables rules:

Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination
TPROXY     tcp  --  anywhere             anywhere            tcp dpt:http
TPROXY redirect 0.0.0.0:3128

Any idea?

Thanks in advance.

Best Regards,

Eduardo Schoedler. 


More information about the tproxy mailing list