Skip to content

Obviate.io

To anticipate and prevent

Transparent Proxy for Squid

Posted on 2006-08-24 By Jon No Comments on Transparent Proxy for Squid

So I went to setup Squid 2.6 for a passive proxy. Apparently the geniuses changed around the configuration so the old style of using the “httpd_” configs no longer works. Granted its much simpler now, but no one warned me!!! Bastards! Now you just add “transparent” to the end of the http_port statement.

Detailed version of how to “passive proxy”.

1- Install Squid

2- Configure Squid for allow normal proxy’ing

3- Change the http_port statement to look something like: “http_port 3128 transparent“

4- Add the following line to your firewall statement (where eth1 is the internal port):

iptables -t nat -A PREROUTING -i eth1 -p tcp —dport 80 -j REDIRECT —to-port 3128

5- Start everything up and rock and roll

(Oh, and putting this on your gateway/router is probably a GOOD idea)

Linux

Post navigation

Previous Post: OpenVPN & Vista
Next Post: The Virtues of OpenVPN – Part 1

Related Posts

MKV’s & Ubuntu dont mix Linux
Ubuntu 8.04 Day 2 Linux
On the bright side…. Linux
Migrating Apache SSL Certs to IIS 6.0 Linux
Gmail’s Space Increase Linux
Sam is no longer a techy Linux

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Copyright © 2026 Obviate.io.

Powered by PressBook Masonry Dark