For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

iRule's avatar
iRule
Icon for Cirrus rankCirrus
4 years ago
Solved

hostname redirect for public IPs only

Dear Community, I am using following iRule to redirect traffic to another virtual IP during maintenance window but this iRule causes all traffic of external internet clinets with "public IPs" & inte...
  • Enes_Afsin_Al's avatar
    4 years ago

    Hi,

    when HTTP_REQUEST {
    	if { [HTTP::host] eq "morning.abc.com" && not ([class match [IP::client_addr] equals /Common/private_net]) } {
    		HTTP::redirect "https://evening.xyz.com/en/contact-us/mobile/maintenance"
    		return
    	}
    }

    https://support.f5.com/csp/article/K19509439