Forum Discussion

ST_Wong's avatar
ST_Wong
Icon for Cirrus rankCirrus
Jun 29, 2010

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

2 Replies

  • tiny_cloud_ninj's avatar
    tiny_cloud_ninj
    Historic F5 Account
    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