LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-25-2008, 04:13 AM   #1
ssd26
LQ Newbie
 
Registered: Apr 2004
Posts: 5

Rep: Reputation: 0
Divert Web Traffic From One SQUID Box to Another


Hi Everybody,

I have a squid-box with other services running on it. This squid service on this box needs to be stopped for certain other activities. The web traffic however cannot be disrupted. So i have setup another squid-box-2.
My query is how do i redirect all web traffic from squid-box to squid-box-2.

Any help is appreciated.

Thanks

Subodh
 
Old 04-25-2008, 04:40 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
well how are clients reaching that box in the first place? what other network architecture do you have? presumably you don't want to actually redirect on the box itself if it's a maintenance window you're after...?
 
Old 04-25-2008, 06:57 AM   #3
ssd26
LQ Newbie
 
Registered: Apr 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Hi,

All the clients have their browser configured for the SQUID-BOX IP and PORT. After authentication on this box, they are able to browse.

Now since the squid services on this box are to be stopped, i need some method to divert the web traffic coming to the SQUID-BOX on port 3128 to the new SQUID-BOX-2, without the users being hassled about it.

Subodh
 
Old 04-25-2008, 08:23 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
wel you could use an iptables rule on the box, but ideally you'll have a NAT capable router between these points which would be a better way to do it... is there such a thing?

on the server itself, "iptables -t nat -A INPUT -i eth0 -p tcp --dport 3128 -j DNAT --to other-squid-box:3128" should work i think... but this isn't a nice solution if you're actively working on the box.
 
  


Reply

Tags
iptables, redirect, squid, traffic, web


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
help with dpkg-divert --divert dannybuntu Linux - Newbie 2 04-25-2008 11:07 PM
Squid Overwhelmed With Traffic dablew Linux - Server 4 04-07-2008 11:19 AM
Accessing Front Page Web Pages on a W3K box from a Centos5 box. swamprat Linux - Networking 1 11-23-2007 02:54 AM
bypass traffic through squid sapheroth Linux - Networking 1 02-14-2007 02:59 AM
I need to inhibit outgoing web traffic on the firewall, and leave only Squid, How? mfeoli Linux - Networking 2 02-06-2004 10:54 AM


All times are GMT -5. The time now is 12:59 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration