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}

}

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 
    } 
 }