on 18-Mar-2015 14:42
Problem this snippet solves:
Below the iRules, it reject serverside connection from special service that doesn`t use http profile and reply "reset status" to the clientside.
Code :
when CLIENT_ACCEPTED { if {[active_members pool_wport] < 1 }{ pool pool_wport_sorry } else { pool pool_wport } } when SERVER_CONNECTED { if { [IP::addr [serverside {IP::remote_addr}] equals 172.18.10.115] } { reject } elseif { [IP::addr [serverside {IP::remote_addr}] equals 172.18.10.116] } { reject } }