LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-24-2009, 02:23 AM   #1
lothario
Member
 
Registered: Apr 2004
Posts: 340

Rep: Reputation: 30
squid


I have squid running just fine on a "Ubuntu 8.04.2" system.

Like this:
clients (192.168.6.x) <--> Squid on Ubuntu (192.168.6.101) <--> Internet

There are a whole bunch of clients that use this Ubuntu system as their proxy.

For a few days temporarily, I need to use another squid.
But it is not practical to go to each desktop to make the same temporary change.

How can I do this:
clients (192.168.6.x) <--> Squid on Ubuntu (192.168.6.101) <--> other temporary Squid (192.168.3.200) <--> Internet

What do I specify in "squid.conf" on the Ubuntu such that it routes this web traffic to the squid at 192.168.3.200 ?

So then later on I can go back to the "squid.conf" and un-do these changes.
 
Old 06-24-2009, 02:52 AM   #2
sushantchawla2005
Member
 
Registered: Jun 2009
Location: India
Distribution: All flavours of linux
Posts: 93

Rep: Reputation: 14
Wink

Hello


Please provide me some more details like are you using your squid server as a router too. If yes then follow these steps:

First you need to setup your temporary squid server to run on different port what you are running on your permanent squid now.

Add an entry in your temporary squid something like this: http_port 8080 transparent

Change the port number if your permanent squid is using this port.

The second step you need is to configure your firewall to to redirect all the IP traffic on your network to be redirected to your squid port.

The command is: iptables -t nat -A PREROUTING -p tcp --dport 80 -i eth0 -s 192.168.1.0/24 -j REDIRECT --to-port=3128

Here you can change the NIC interface ID to whatever your system is using & secondly the Subnet. For e.g. if you need 192.168.3.0/24 subnet to be redirected through your transparent proxy then replace 192.168.1.0/24 with 192.168.3.0/24.


Let me know if you have any more issues after following these steps.



Good Luck

Last edited by sushantchawla2005; 06-24-2009 at 02:56 AM.
 
Old 06-24-2009, 03:11 AM   #3
lothario
Member
 
Registered: Apr 2004
Posts: 340

Original Poster
Rep: Reputation: 30
Some more details about my network.

I cannot make any changes to the firewall. I do not control it.

The permanent Squid on Ubuntu (192.168.6.101) is NOT running on the same port as
the temporary Squid (192.168.3.200).

I can make changes to squid.conf on these 2 systems.

Can you tell me how to changes to the settings in the squid.conf on 192.168.6.101 so that it just sends/forwards everything to 192.168.3.200 port abcde ?
 
Old 06-24-2009, 05:40 AM   #4
sushantchawla2005
Member
 
Registered: Jun 2009
Location: India
Distribution: All flavours of linux
Posts: 93

Rep: Reputation: 14
Wink

As far as I know about squid there is nothing like a slave squid server.

And you said you also can not make any changes to the firewall of your network, so only one option left is to swap the IP address of your permanent & temporary server if you don't want the botheration of changing the IP Addresses on every client machine. :-)
 
Old 06-24-2009, 10:43 PM   #5
lothario
Member
 
Registered: Apr 2004
Posts: 340

Original Poster
Rep: Reputation: 30
This looks like the answer I was looking for:

"How do I configure Squid forward all requests to another proxy?"
located at:
http://wiki.squid-cache.org/SquidFaq/ConfiguringSquid
 
Old 06-24-2009, 11:07 PM   #6
sushantchawla2005
Member
 
Registered: Jun 2009
Location: India
Distribution: All flavours of linux
Posts: 93

Rep: Reputation: 14
Quote:
Originally Posted by lothario View Post
This looks like the answer I was looking for:

"How do I configure Squid forward all requests to another proxy?"
located at:
http://wiki.squid-cache.org/SquidFaq/ConfiguringSquid

Looks a very good Documentation but did u implemented it successfully in ur scenario?
 
  


Reply



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
[SOLVED] Squid+DansGuardian not working properly. squid blocking sites that should be linuxlover.chaitanya Linux - Server 13 11-10-2014 10:34 AM
squid conf: squid failed when I type insert redirect_program /usr/bin/squidguard laxmantsharma Linux - Software 1 02-24-2009 06:02 AM
squid - limited time slot for accessing the internet via squid. shahg_shahg Linux - Server 1 09-20-2008 06:41 AM
LDAP authentication for squid squid 2.6.STABLE16 release 2.fc8 farrukhndm Linux - Security 2 04-03-2008 01:57 AM
squid conf: squid failed when I type insert redirect_program /usr/bin/squidguard Niceman2005 Linux - Software 1 11-24-2004 02:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:59 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration