amit_128525
Dec 05, 2013Nimbostratus
irule not working
one of our requiremnet is that to define a irule which allow the few user in specific ip address to access the normal website but if the user comes from some other ip address apart from this ip address he should get "page not found " url , we have one irule for this but we are having issue when u put it in that even when we try to access from ip address 10.1.1.1 we are getting page not found . Please advise if missing something in irule
when HTTP_REQUEST { if { [HTTP::host] contains "a.b.com" } { switch [IP::addr [IP::client_addr] mask 255.255.255.255] { "10.1.1.1." {
pool Pool_A_Prod } default { HTTP::respond 200 content [b64decode [class element -name 0 DG_MAINTENANCE_HTML]] "Content-Type" "text/html" } } } }