LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 08-04-2005, 11:21 PM   #1
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Question Squid Transparent


i have squid installed transparently on a fast server for a small LAN... it accelerates the LAN hosts' web surfing very nicely and saves bandwidth...

now i need to add an apache web server to the LAN, but it's a very old/slow server so i'd like to use the squid box as a transparent proxy for the web server... the apache server will be accessed from the internet through the squid box (the squid box is also the LAN's iptables router/firewall)...

basically my questions are:

- can it be done??

- if so, how?? (i mean, is it as easy as adding a squid ACL and iptables PREROUTING/FORWARD rules much like you do for LAN clients??)

i know that squid is used as a proxy for apache web servers all the time, but i'm not sure what the implications are of having it operate in that mode while at the same time operating in the "LAN web surfers" mode...

any light that you could shed would be greatly appreciated...


Last edited by win32sux; 08-04-2005 at 11:27 PM.
 
Old 08-05-2005, 05:02 AM   #2
cdhgee
Member
 
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
Re: Squid Transparent

Quote:
Originally posted by win32sux
- can it be done??
Don't see why not.

Quote:
Originally posted by win32sux
- if so, how?? (i mean, is it as easy as adding a squid ACL and iptables PREROUTING/FORWARD rules much like you do for LAN clients??)
It should be. From squid's point of view, it's just network traffic going to another web server.

Last edited by cdhgee; 08-05-2005 at 05:03 AM.
 
Old 08-05-2005, 11:57 AM   #3
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Original Poster
Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
thanks for the reply cdhgee!!!

yeah, i was thinking the same thing, i guess i just needed some reassurance...

BTW, i'm currently using these options in squid.conf for the transparency:
Code:
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
when i add the apache server, i should be fine without having to edit those lines, right??

 
  


Reply


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
Transparent Proxying on Squid swoolley Linux - Networking 2 04-28-2005 03:38 PM
Squid as a transparent proxy kemplej Linux - Software 2 12-08-2004 05:00 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
transparent squid problem Steave Linux - Networking 7 05-05-2003 12:51 AM


All times are GMT -5. The time now is 02:29 PM.

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