genseek_32178
Jun 18, 2012Nimbostratus
iRule Processing
Hi,
We have the following config for wild card VS with iRule
virtual vs_vl10
pool pl_vl10
destination any:any
mask 0.0.0.0
rules rule_vl10
profiles fastl4-pr
vlan 10 enable
rule rule_vl10
when CLIENT_ACCEPTED |
if { [matchclass [IP::local_addr] equals gol_networks
snat none
pool pl_vln10
} else {
snatpool vln20
pool pl_vl20
}
}
}
vl10 - 10.10.10.x/24, vl20 -20.20.20.x/24, snatpool vln20 - 20.20.20.99
gol_networks {
{
network 1.1.1.1
network 172.20.20.x/24
network 10.210.0.0/24
network 203.36.135.192/27
}
}
Issue - how iRule works here
when CLIENT_ACCEPTED means - pakts coming from external clients to LTM?
when CLIENT_ACCEPTED | if { [matchclass [IP::local_addr] equals gol_networks
here IP::local_addr] equals gol_networks -- means destination in the pkts coming to LTM
OR
means destination in the pkts going out of LTM?