Alan_B__139698
Jan 28, 2019Altostratus
iRule trouble - Redirecting IPs not matching data group
I applied an iRule to redirect incoming traffic not matching IPs in a data group (ex. 20.x.x.x) to a default page. However, when I test it via wireless (172.x.x.x), I'm not getting redirected. The iRule's applied to two vservers (they use port 8000 and 8089) connections via HTTP. I verified my wireless connection's IP when hitting the vserver via a tcpdump.
This is the iRule...does this look correct? Would there be a better way to do it?
when HTTP_REQUEST { if { not ([class match [IP::remote_addr] equals site_restrict]) } { HTTP::redirect "; }
}
Thanks!