LinuxQuestions.org
Visit Jeremy's Blog.
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
 
LinkBack Search this Thread
Old 05-26-2010, 04:43 PM   #1
testingpepe
LQ Newbie
 
Registered: May 2007
Posts: 5

Rep: Reputation: 0
How to rotate outgoing ips on squid


Hi, I search the forum and the internet whit no luck. Im using Squid 3 for web cache and i want to use multiple outgoing ip addresses. Not 1 ip for 1 client, i want to rotate several outgoing ip addresses to the same client.

Client A --> outgoing IP A
next conection
Client A --> outgoing IP B
and so on
 
Old 05-27-2010, 09:42 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 39,853

Rep: Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121
why?? Don't do things for no good reason, I would wonder if there's honestly a worthwhile reason to do this.
 
Old 06-07-2010, 02:46 AM   #3
rajas.kar89
LQ Newbie
 
Registered: Jun 2010
Location: Pune, India
Distribution: ubuntu redhat
Posts: 1

Rep: Reputation: 0
even i need some method to implement this.
@acid_kewpie: some sites allow only one connection from one ip address. in that case we will need this kind of a feature. but squid will provide the same ip for the client for all connections.
any help will be appreciated. thank you.
 
Old 06-07-2010, 07:37 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 39,853

Rep: Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121
What kind of sites are they?? It is not common to ever do this.
 
Old 06-17-2010, 04:56 PM   #5
transcendofsypherus
LQ Newbie
 
Registered: Jun 2010
Posts: 3

Rep: Reputation: 0
balance_on_multiple_ip directive

You want the balance on multiple IP directive.
 
Old 06-17-2010, 04:56 PM   #6
transcendofsypherus
LQ Newbie
 
Registered: Jun 2010
Posts: 3

Rep: Reputation: 0
balance_on_multiple_ip directive

http://www.squid-cache.org/Doc/confi...n_multiple_ip/
 
Old 06-18-2010, 08:02 AM   #7
testingpepe
LQ Newbie
 
Registered: May 2007
Posts: 5

Original Poster
Rep: Reputation: 0
I try that but whit no results, i think im doing something bad on the configuration. Can someone put a example config of the directive???
 
Old 06-19-2010, 04:37 PM   #8
transcendofsypherus
LQ Newbie
 
Registered: Jun 2010
Posts: 3

Rep: Reputation: 0
Multiple Outgoing IP Example

The following page on the Squid website demonstrates rotation of IPs for varying times of the day:

http://wiki.squid-cache.org/ConfigEx...on_time_of_day

All you need to do to rotate this for all requests and not keep it consistent is remove the access control list and add:

balance_on_multiple_ip on

and change them all to the same group removing the Access Control List.

Something like:
tcp_outgoing_address 192.0.2.1 ip1
tcp_outgoing_address 192.0.2.2 ip2
tcp_outgoing_address 192.0.2.3 ip3

balance_on_multiple_ip on

Last edited by transcendofsypherus; 06-19-2010 at 04:41 PM. Reason: bad example.
 
Old 08-25-2010, 01:01 AM   #9
Jalindar
LQ Newbie
 
Registered: Feb 2010
Posts: 14

Rep: Reputation: 0
Chage outgoing IP...

Hi,

How to change out going IP to different IPs to avoid the BlackListing?

Please tell me, If have any way to do this (Without using Squid).

Last edited by Jalindar; 08-25-2010 at 04:54 AM.
 
  


Reply

Tags
ips


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Squid multiple IPS fandar Linux - Server 3 12-02-2011 09:30 AM
Squid can listen in 2 different Ips xrtc Linux - Networking 1 11-15-2005 12:32 AM
Squid - rotate doesnt work Wormi Linux - Networking 1 06-04-2005 04:06 PM
how squid find ips mchitrakar Linux - Networking 3 06-11-2004 07:50 AM
Problem with squid and rotate chamkila Linux - General 1 05-15-2003 05:46 PM


All times are GMT -5. The time now is 05:55 AM.

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