Forum Discussion
Nd27_312475
Nimbostratus
Mar 03, 2017iRule to not redirect from certain source addresses
Hi All,
I apply a very simple iRule to a VIP to redirect all traffic to a maintenance splash page. However i need to add the option for certain source IPs to function normally.
At present the iRule shows
when HTTP_REQUEST { HTTP::redirect }
How do i get it to allow certain specific hosts to function normally?
1 Reply
Something like this:
when HTTP_REQUEST { if { !( [IP::addr [IP::client_addr] equals 10.1.0.0/25] ) } { HTTP::redirect http://x/x/maintenance.html } }You can make it even better by using a datagroup.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects