Pls help: redirect ldap traffic based on client IP

Hi all,

Sorry that I’m newbie to iRules. I’d like to redirect or drop the traffic of LDAP connections based on the client IP.

I tried similar work in HTTP but I’ve no idea how to handle non-HTTP traffic. Would anyone please help?

Thanks a lot.

/ST Wong

Something like this??

when CLIENT_ACCEPTED {

if { [IP::addr [IP::local_addr] equals 10.10.10.0/255.255.255.0] }{

reject

} elseif { [IP::addr [IP::local_addr] equals 10.10.20.0/255.255.255.0] } {

pool “where you want it directed 2”

}

Yes, that’s great. I’ll try it out. Thanks a lot !

/ST Wong