Forward UDP traffic to different Pool using iRule
Hello,
I made an iRule to forward traffic to other F5 Pool if source is Different , seems it does not work. If source is other than Defined in iRule expectation is traffic should be processed by default pool. But when I see from F5 , it always hitting to the default pool even traffic is sourcing from defined sources from iRule.
What could be the issue from iRule ?
when CLIENT_ACCEPTED {
#Firewall
set FW1 "10.7.10.10"
#Firewall
set FW2 "10.7.11.10"
#Firewall
set FW3 "10.7.12.10"
#Firewall
set FW4 "10.7.13.10"
switch [IP::client_addr] {
$FW1 {
if { [LB::status pool ASA_Pool member 10.8.11.23 1514] eq "up" or [LB::status pool ASA_Pool member 10.8.11.24 1514] eq "up" } {
pool ASA_Pool
} else { pool Default_Pool }
}
$FW2 {
if { [LB::status pool ASA_Pool member 10.8.11.23 1514] eq "up" or [LB::status pool ASA_Pool member 10.8.11.24 1514] eq "up" } {
pool ASA_Pool
} else { pool Default_Pool }
}
$FW3 { if { [LB::status pool ASA_Pool member 10.8.11.23 1514] eq "up" or [LB::status pool ASA_Pool member 10.8.11.24 1514] eq "up" } {
pool ASA_Pool
} else { pool Default_Pool }
}
$FW4 { if { [LB::status pool ASA_Pool member 10.8.11.23 1514] eq "up" or [LB::status pool ASA_Pool member 10.8.11.24 1514] eq "up" } {
pool ASA_Pool
} else { pool Default_Pool }
}
default { pool Default_Pool }
}
}