ekim9190_208428
Jun 26, 2015Nimbostratus
Use pool members as source address?
I apologize if this is trivial, however, my GoogleFu has failed me.
I am attempting to use a pool as the source of a connection to a vserver to load balance across multiple nodes in multiple pools.. Example below:
Pool1 10.0.0.1 10.0.0.3 10.0.0.4
Pool2 10.0.0.2 10.0.0.5 10.0.0.8
PoolA 10.0.1.1 10.0.1.3 10.0.1.4
PoolB 10.0.1.2 10.0.1.5 10.0.1.8
Logic:
when CLIENT_ACCEPTED {
if source_addr = Pool1 where all pool1 members are checked
pool PoolA
if source_addr = Pool2 where all pool2 members are checked
pool PoolB
`
Otherwise I was thinking about just normal programming logic:
` for mypool in listOfPools
for member in mypool
if source_addr == member.ipaddr
pool $mypool
Is there a better way to do this? I'm sure there is something I've missed...
Thanks for your help!