For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Lokesh's avatar
Lokesh
Icon for Nimbostratus rankNimbostratus
Jul 15, 2019

irule based on client IP address

Currently URL A is pointing to IP X.

 

All machine is using URL A to access to IP X.

 

Now 2 machine wanted to use URL A to go to IP Y.

 

Remaining machine still using URL A to point to IP X

 

Below irule created , will it work ?.

 

when DNS_REQUEST {

if { [IP::addr [IP::client_addr] equals "Machine A IP"] || [IP::addr [IP::client_addr] equals " Machine B IP"] } {

  pool DR_HPNS_10.72.134.53_POOL member <Name of Member>

   log "PROD detected - From IP: [IP::client_addr]"

}else {       

         pool pool3

}

}

4 Replies

  • it might sound a bit unkind, but try, it is the best way to see if something works.

     

    personally i wonder if you want to use the DNS_REQUEST event as you are talking about URLs also.

  • jmm's avatar
    jmm
    Icon for Nimbostratus rankNimbostratus

    May I ask which version of F5 DNS this was on? Thanks in advance