Review your favorite Linux distribution.
Go Back > Forums > Other *NIX Forums > *BSD
User Name
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.


  Search this Thread
Old 04-10-2008, 10:42 AM   #1
Registered: Jul 2006
Location: Hamburg, Germany
Distribution: Debian, CentOS
Posts: 297

Rep: Reputation: 31
Question SQUID Transparent proxy problem.

Hello community,

I don't really know what's going on, but I want to have a transparent proxy with "Squid 3.0.STABLE4", so I took a reading on lots of documentation and step-by-step tutorials but it doesn't works.
Firstly I realized that I had to comment these lines:
#httpd_accel_host virtual
#httpd_accel_port 80
#httpd_accel_with_proxy on
#httpd_accel_uses_host_header on

and then change it for:
http_port transparent
So I did.

It's a FreeBSD box, so I have IPFW and then I've added the following line to (possibly) make this work (yes, the IP is my personal desktop, I'm testing it just to myself before I add the entire /24 network):
ipfw add 76 fwd,3128 tcp from to any dst-port
In the end, I always get the same results, I try to access the web through the port 80 and I just get an error message from squid. Then I comment that line and reload the firewall script and everything's fine, I can surf on the net (but not through the SQUID).

It's really weird, since I can normally surf on the net when I manually add the port 3128 to my browser and it works perfectly, I have the access.log logging everything and so on.
So it's definitely a "transparent proxy" issue, maybe it's something wrong with that IPFW rule or with squid.conf itself, I have no idea for now.

Any idea about it?

Thanks in advance.


Last edited by sparc86; 04-10-2008 at 10:45 AM.
Old 04-10-2008, 04:29 PM   #2
Registered: Jul 2006
Location: Hamburg, Germany
Distribution: Debian, CentOS
Posts: 297

Original Poster
Rep: Reputation: 31
PS: For your knowledge, it cannot be a firewall issue, because I can connect to the squid server when I try to access any website through the port 80, so it means that the redirection is ok, right?

However, I just get a squid error error message, not the real website (but I can still see the squid version on it, that's why I truly believe the IPFW port redirection is working fine)

Last edited by sparc86; 04-10-2008 at 04:30 PM.


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
Squid Transparent Proxy SBN Linux - Server 6 07-11-2007 04:54 AM
Squid as a transparent proxy kemplej Linux - Software 2 12-08-2004 06:00 PM
transparent proxy with squid problem philipph Linux - Networking 5 04-19-2004 10:03 AM
Squid with Transparent Proxy MarleyGPN Linux - Networking 1 08-28-2003 03:51 PM
squid transparent proxy...... hitesh_linux Linux - Networking 1 06-13-2003 04:24 AM > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 06:54 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