Forum Discussion
hooleylist
Dec 01, 2009Cirrostratus
Hi Randy,
That iRule looks straightforward enough. Which LTM version are you testing with? Do you have ASM or WAM enabled on the VIP? What type of VIP are you using the iRule on?
If it's not working as you expect, can you add debug logging to confirm the client IP address and whether the pool selection is being hit?
when CLIENT_ACCEPTED {
log local0. "client IP:port [IP::client_addr][TCP::client_port]: [virtual name] [IP::local_addr][TCP::local_port]"
if { [IP::addr [IP::client_addr] equals 209.221.139.195] } {
log local0. "client IP:port [IP::client_addr][TCP::client_port]: Matched IP check, selecting Segregation_Pool"
pool Segregation_Pool
}
}
when LB_SELECTED {
log local0. "client IP:port [IP::client_addr][TCP::client_port]: Selected server: [LB::server]"
}
when SERVER_CONNECTED {
log local0. "client IP:port [IP::client_addr][TCP::client_port]: Connected server: [IP::server_addr]:[TCP::server_port]"
}
Aaron