Forum Discussion

slesh_219299's avatar
Feb 23, 2017

irule allow only one IP to VIP

Hi guys I need to allow only one ip to vip and will this help ? when CLIENT_ACCEPTED { if { ( [IP::addr [IP::client_addr] equals "11.22.33.44"] ) } then { Allow } else { DRO...
  • slesh_219299's avatar
    Nov 30, 2017

    Ok I had to go with data group

    when CLIENT_ACCEPTED {
     Check the data group
    if { ! ([class match [IP::client_addr] equals allow_2_IP ]) } {
         Not valid client
        drop
    }
    

    }

    works fine but if someone have irule which allow only 2 ips it would be great also 🙂