Search squid archive

Runtime selection of Outgoing IP address

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

<<attachment: smime.p7s>>


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux