Forum Discussion
Apr 29, 2010
Cool, that's where I was going with it. Do you know if "if" is a cleaner way to do this vs setting the variable "hostip"? Setting the host variable leave the option to do something else with the info in the future..
when CLIENT_ACCEPTED {
set hostip { [matchclass [IP::client_addr] equals $::phsIPs]
Check if there was a match
if {$hostip ne ""}{
persist source_addr 28800
pool mypool
} else {
pool mypool
}
}
Yep I'm using ver 9.x, I've seen the command change a bit in 10x. Thanks for the reference thread, good info..