[squid-users] Runtime selection of Outgoing IP address

From: Richard Warren <richard.warren_at_anonymizerinc.com>
Date: Tue, 5 Oct 2010 17:59:51 -0400

Hi All,

At present, I�m using Squid 2.7 and am able to bind a given User to a
specific outgoing IP using just configs. See Figure 1 for illustration.

    User1 --> 10.10.62.1
    Figure 1. Current mapping through configs

Now, however, I need to extend Squid such that an outgoing IP is randomly
selected from a pool of IP's and bound to the User at runtime when the
User's request is processed. Each subsequent request the User makes will be
bound to a randomly selected outgoing IP.

    Request_0 : User1 --> getRandomIPfromPool();
    Request_1 : User1 --> getRandomIPfromPool();
    Request_N : User1 --> getRandomIPfromPool();
    
    Figure 2. Runtime Outgoing IP binding based on algorithmic IP selection.

That is the problem I'm trying to solve but aside from searching the archive
and browsing the FAQ I'm lost and would greatly appreciate a point in the
right direction (i.e., to Reference Material, Example Code).

I'm hoping there is an interface I can write to and configure Squid to use
in place of some default class. I know the logging component has an
interface that allows a programmer to write a custom daemon helper and am
hoping I might do something similar.

Any help, direction, or other input is greatly appreciated.

Thanks in advance!
-Richard Warren

Received on Tue Oct 05 2010 - 22:00:00 MDT

This archive was generated by hypermail 2.2.0 : Wed Oct 06 2010 - 12:00:02 MDT