Forum Discussion

Tom_Thunem_9204's avatar
Tom_Thunem_9204
Icon for Nimbostratus rankNimbostratus
Jun 05, 2015

check to see if an HTTP header IP is in a particular address space

trying to determine the iRule syntax that determines if an http::header IP is part of a certain address space. for example,

 

if [http::header true-client-IP] is in 172.16.38.0/24 redirect to http://blah.com

 

Can't use the IP::client_addr as that will change since the connection is coming from a remote CDN (Akamai). The 'true-client-ip' is the IP from the original user request.