bwagner444_1277
May 25, 2007Nimbostratus
Source based routing to multiple groups
This one is pretty straight forward jus tnot sure if I am using correct syntax or the proper use of a possible "or". Any help would be great...
Well so here we go. I have a requirement as follows :
If client destined to www.blah.com from 10.20.30.0/24 or 10.20.32.0/24 the traffic need to be sent to server groupA.
If client destined to www.blah.com from 10.20.33.0/24 the traffic needs to be sent to server group B.
All other clients destined to www.blah.com unless matching before mentioned sources go to server group C.
This is what I have come up with so far.
when CLIENT_ACCEPTED { if {[IP::addr "[IP::client_addr]/24" equals "10.20.30.0"]} { pool groupA_pool } { if {[IP::addr "[IP::client_addr]/24" equals "10.20.32.0"]} { pool groupA_pool } { if {[IP::addr "[IP::client_addr]/24" equals "10.20.33.0"]} { pool groupB_pool } else { pool groupC_pool }}