<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Patchlog - Latest Comments in squid 2.6 transparent proxy</title><link>http://patchlog.disqus.com/</link><description></description><atom:link href="https://patchlog.disqus.com/squid_26_transparent_proxy/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Tue, 01 Jan 2008 22:23:46 -0000</lastBuildDate><item><title>Re: squid 2.6 transparent proxy</title><link>http://patchlog.com/general/squid-26-transparent-proxy/#comment-2803636</link><description>&lt;p&gt;Guys&lt;/p&gt;&lt;p&gt;The names of the directives seem to have changed in squid 2.6. Look at the comments in /etc/squid/squid.conf regarding transparent mode. Also see the sections pertaining to squid 2.6 in the second document:&lt;/p&gt;&lt;p&gt;&lt;a href="http://wiki.squid-cache.org/SquidFaq/InterceptionProxy" rel="nofollow noopener" target="_blank" title="http://wiki.squid-cache.org/SquidFaq/InterceptionProxy"&gt;http://wiki.squid-cache.org...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;even i was struggling with a transperant proxy with squid 2.6 and i am still strugling with it ! perhaps the default squid that comes with 10.3 isnt configured to be trasperant - i know this sounds lame but what else could be the solution....&lt;/p&gt;&lt;p&gt;httpd_accel commands are throwing errors , pre-routing and post routing doesnt work - i dont see no other justified answer to this other that - squid need to be compiled again with  --enable-linux-netfilter&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Siddharth</dc:creator><pubDate>Tue, 01 Jan 2008 22:23:46 -0000</pubDate></item><item><title>Re: squid 2.6 transparent proxy</title><link>http://patchlog.com/general/squid-26-transparent-proxy/#comment-2803635</link><description>&lt;p&gt;Do we have a detailed reference to the configuration?  Ta&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">nigel348</dc:creator><pubDate>Mon, 12 Nov 2007 05:13:47 -0000</pubDate></item><item><title>Re: squid 2.6 transparent proxy</title><link>http://patchlog.com/general/squid-26-transparent-proxy/#comment-2803634</link><description>&lt;p&gt;Rocky, you might be able to make it work in your scenario. &lt;br&gt;You may be able to use WCCP or policy based routing.&lt;/p&gt;&lt;p&gt;For WCCP you have to have a WCCP capable device in the path of the web traffic. &lt;br&gt;So if either your firewall or router can do this, have a look at the squid wiki and the docs for the router for setting up WCCP. &lt;br&gt;I have it working with a cisco, works fine and isnt too hard to set up.&lt;/p&gt;&lt;p&gt;Policy routing is then you match traffic based on source, destination or port (or other things), then do something special to it.&lt;br&gt;An example of this would be to match all web traffic passing through your router destined for an external address, you then redirect that traffic to your squid box. This all depends on how smart your router is.&lt;/p&gt;&lt;p&gt;In either of these the squid box does not need to be in the direct path to see all your traffic, you just need one of your existing devices to have one or both of the above so it can flick web traffic to squid and send the rest the usual way.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bunj</dc:creator><pubDate>Thu, 26 Apr 2007 11:31:01 -0000</pubDate></item><item><title>Re: squid 2.6 transparent proxy</title><link>http://patchlog.com/general/squid-26-transparent-proxy/#comment-2803624</link><description>&lt;p&gt;Of course it will not work. How would it be able to redirect packets to squid if the packets don't even get to it?&lt;br&gt;You can set this as the gateway and still use your hardware router, but you have to add another rule to POSTROUTING.&lt;/p&gt;&lt;p&gt;iptables -t nat -A POSTROUTING -o $EXT_IF  -s  $LOCAL_NET -d ! $LOCAL_NET -j SNAT  --to $EXT_IP&lt;br&gt;$EXT_IF is your external interface ( the interface linked to the hardware router in your case ) &lt;br&gt;$LOCAL_NET is 192.168.0.0/24  in your case&lt;br&gt;$EXT_IP is the ip assigned to your external interface ( 192.168.0.250 ? )&lt;/p&gt;&lt;p&gt;you can use just one interface if you want and it can act as both an external and internal interface but you have to set it up to have two different ips ( in two different classes ) one for connecting to the hardware router and the other for your local network. &lt;br&gt;You also have to set your workstations on your lan to have an ip in the same class as the one you set on your server for the local interface, and make the workstations use the server's ip as the gateway not the hardware router.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mihai</dc:creator><pubDate>Thu, 19 Apr 2007 03:16:27 -0000</pubDate></item><item><title>Re: squid 2.6 transparent proxy</title><link>http://patchlog.com/general/squid-26-transparent-proxy/#comment-2803628</link><description>&lt;p&gt;Oh so it will not work if it's not the gateway?  I have it set as a node on my lan because I have a hardware firewall, a Netopia Router.  Do you know of anyway to make transparent proxy work in this type of scenerio?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rocky</dc:creator><pubDate>Wed, 18 Apr 2007 18:05:08 -0000</pubDate></item><item><title>Re: squid 2.6 transparent proxy</title><link>http://patchlog.com/general/squid-26-transparent-proxy/#comment-2803629</link><description>&lt;p&gt;This machine has to act as the gateway for your local network. Do you have it configured this way?  do you have a rule in the POSTROUTING chain for doing SNAT or something like that ? does that work ?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mihai</dc:creator><pubDate>Wed, 18 Apr 2007 17:47:50 -0000</pubDate></item><item><title>Re: squid 2.6 transparent proxy</title><link>http://patchlog.com/general/squid-26-transparent-proxy/#comment-2803625</link><description>&lt;p&gt;Hey Mihai,&lt;/p&gt;&lt;p&gt;I appreciate the help bro.  I edited my sysctl.conf file and added net.ipv4.ip_forward = 1&lt;br&gt; to it.  So whenever I reboot, it automatically turns on ip forwarding.  So I am not doing ehco 1 &amp;gt; /proc/sys/net/ipv4/ip_forward.&lt;/p&gt;&lt;p&gt;When I run iptables -t nat -L -n -v, this is what I get:&lt;/p&gt;&lt;p&gt;Chain PREROUTING (policy ACCEPT 4 packets, 192 bytes)&lt;br&gt; pkts bytes target     prot opt in     out     source               destination&lt;br&gt;    0     0 REDIRECT   tcp  --  eth0   *       0.0.0.0/0            0.0.0.0/0           tcp dpt:80 redir ports 3128&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rocky</dc:creator><pubDate>Wed, 18 Apr 2007 16:26:14 -0000</pubDate></item><item><title>Re: squid 2.6 transparent proxy</title><link>http://patchlog.com/general/squid-26-transparent-proxy/#comment-2803631</link><description>&lt;p&gt;did you also do :  echo 1 &amp;gt; /proc/sys/net/ipv4/ip_forward &lt;br&gt;?&lt;/p&gt;&lt;p&gt;if you run iptables -t nat -L -n -v  does it show any packets matching the iptables rule that you added to PREROUTING ?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mihai</dc:creator><pubDate>Wed, 18 Apr 2007 16:16:08 -0000</pubDate></item><item><title>Re: squid 2.6 transparent proxy</title><link>http://patchlog.com/general/squid-26-transparent-proxy/#comment-2803633</link><description>&lt;p&gt;Hey Mihai,&lt;/p&gt;&lt;p&gt;Ok so I've done the cat /proc/sys/net/ipv4/ip_forward thing and I not have ip forwarding on.  I also made sure that the iptables entry is correct.&lt;/p&gt;&lt;p&gt;I still cannot do transparent proxy.  It only works when I manually set IE to use a proxy.  Any ideas?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rocky</dc:creator><pubDate>Wed, 18 Apr 2007 15:59:42 -0000</pubDate></item><item><title>Re: squid 2.6 transparent proxy</title><link>http://patchlog.com/general/squid-26-transparent-proxy/#comment-2803632</link><description>&lt;p&gt;do you have ip forwarding enabled ? &lt;br&gt;cat /proc/sys/net/ipv4/ip_forward   should show 1. if not then : echo 1 &amp;gt; /proc/sys/net/ipv4/ip_forward &lt;br&gt;and if you want this to work after a reboot put it somewhere like rc.local or /etc/sysctl.conf&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mihai</dc:creator><pubDate>Wed, 18 Apr 2007 12:46:18 -0000</pubDate></item><item><title>Re: squid 2.6 transparent proxy</title><link>http://patchlog.com/general/squid-26-transparent-proxy/#comment-2803630</link><description>&lt;p&gt;Hey guys,&lt;/p&gt;&lt;p&gt;I just came across this proxy and was wondering if you guys can help me out.  I have the classic 192.168.0.0 subnet running at my organization with a hardware router that is also the gateway.  I've been trying to get squid 2.6, running on Debian Etch with kernel 2.6, but with no success.  I've gotten it to work by setting my IE to use a proxy but it doesn't seem to want to work transparently.  I've entered the  iptables entry but still, same result.  My setup is below:&lt;/p&gt;&lt;p&gt;Compaq EN 1ghz, 512MB Ram with onboard Intel nic&lt;br&gt;Installed Debian Etch from netinst CD with no packages.&lt;br&gt;Configure Nic with IP 192.168.0.250 255.255.255.0 gw192.168.0.2 dns 4.2.2.1&lt;br&gt;Did apt-get install squid&lt;br&gt;Configured squid.conf:&lt;br&gt;http_port 3128 transparent&lt;br&gt;acl lan src 192.168.0.0/24&lt;br&gt;http_access allow localhost&lt;br&gt;http_access allow lan&lt;/p&gt;&lt;p&gt;Iptables entry:&lt;br&gt;iptables -t nat -A PREROUTING -i eth0 -p tcp -dport 80 -j REDIRECT -to-port &lt;br&gt;3128&lt;/p&gt;&lt;p&gt;Can someone help me figure this out?&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rocky</dc:creator><pubDate>Wed, 18 Apr 2007 09:28:53 -0000</pubDate></item><item><title>Re: squid 2.6 transparent proxy</title><link>http://patchlog.com/general/squid-26-transparent-proxy/#comment-2803623</link><description>&lt;p&gt;if the redirect don't work, try this:&lt;/p&gt;&lt;p&gt;iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">swenska</dc:creator><pubDate>Wed, 14 Mar 2007 19:55:19 -0000</pubDate></item><item><title>Re: squid 2.6 transparent proxy</title><link>http://patchlog.com/general/squid-26-transparent-proxy/#comment-2803627</link><description>&lt;p&gt;That configuration works on my server, maybe the problem is somewhere else. More details would be good if you want some help.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mihai</dc:creator><pubDate>Fri, 09 Mar 2007 09:23:00 -0000</pubDate></item><item><title>Re: squid 2.6 transparent proxy</title><link>http://patchlog.com/general/squid-26-transparent-proxy/#comment-2803626</link><description>&lt;p&gt;But that not make the cache work, i search for months how to make transparent and cache proxy in 2.6 but no solution, lol, i return to 2.4 version cause that...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Marco A. Barragan</dc:creator><pubDate>Fri, 09 Mar 2007 08:48:57 -0000</pubDate></item></channel></rss>