Forum Discussion

lai_elephant_53's avatar
lai_elephant_53
Icon for Nimbostratus rankNimbostratus
Jul 05, 2005

irule setting??

my bigip V9.0.5 , and i setup a datagroup,this group have all the computer can internet,others can not go to internet,i want to check if the rule i wrote like below,it right or wrong???

 

 

 

when CLIENT_ACCEPTED {

 

if {[[matchclass [IP::remote_addr] equals {$::Proxy_Server}]]}

 

{pool out_bound_pool}

 

{discard}

 

}
  • unRuleY_95363's avatar
    unRuleY_95363
    Historic F5 Account
    First, you have a double set of square brackets, so you need to remove one set. Second, you need an "else" between the two statement blocks.

    Try this:

     
     when CLIENT_ACCEPTED { 
        if {[matchclass [IP::remote_addr] equals {$::Proxy_Server}]} { 
           pool out_bound_pool 
        } else { 
           discard 
        } 
     }