Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-07-2004, 09:46 AM   #1
Registered: Dec 2003
Posts: 235

Rep: Reputation: 30
Squid as a transparent proxy

How could I set up a squid box to be a transparent proxy? I want to be able to have all web traffic that goes across the box to be authd by the squid ncsa.


Old 12-08-2004, 05:52 AM   #2
Senior Member
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
From memory, there are two parts to it. The first thing to do is to set up a rule on the firewall that redirects the traffic, and then you add a rule in the Squid config.

I use shorewall as a network firewall, and there were instructions on the site for transparent proxying. Don't know what the rule would be on raw iptables, but Google can probably tell you.

FWIW, transparent proxying doesn't work with SSL protocols, so it's not very useful in many environments.
Old 12-08-2004, 05:00 PM   #3
Registered: Jun 2003
Distribution: RH 8.2, SuSE 9.0
Posts: 135

Rep: Reputation: 15
The rule in squid.conf goes into /authenticate_program /usr/bin/pam_auth (adjust path and name according to what you use)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
WCCP and Transparent Proxy with Squid tech-ninja Linux - Networking 4 03-29-2005 10:25 AM
transparent squid proxy server alvi2 Linux - Networking 4 02-24-2005 01:18 PM
Squid Transparent Proxy 1jamie Linux - Security 7 09-26-2003 06:09 AM
Squid with Transparent Proxy MarleyGPN Linux - Networking 1 08-28-2003 02:51 PM
squid transparent proxy...... hitesh_linux Linux - Networking 1 06-13-2003 03:24 AM

All times are GMT -5. The time now is 01:00 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration