Forum Discussion
Michael_Yates
Aug 02, 2011Nimbostratus
Hi intadm,
You can find additional information for the Class Command here: http://devcentral.f5.com/wiki/iRules.class.ashx
As Hamish pointed out the Global Variable “$::” has been updated from v9.x to v10.x. You can change the usage.
when CLIENT_ACCEPTED {
if { [class match [IP::client_addr] equals SPOE_IPS] } {
pool pool_spoe_proxies
}
else {
pool pool_BC_proxies
}
}
For your other question, I would take a look at the following commands:
[IP::client_addr]
[IP::server_addr]
There are also additional options available depending on what you need.
Hope this helps.