Forum Discussion
tihi_341714
Nov 06, 2018Nimbostratus
Custom error page iRule with IP address filtering
Hi,
I'm not good with writing iRules so I would like some help. :)
We have a BIG-IP device with LTM and AFM provisioned. Customer would like us to configure the following.
They have a list...
- Nov 06, 2018
You can use LTM policy to achieve requirement.
However iRule is also choice. Create data group
and try below iRule.MyIPList
when HTTP_REQUEST { if { [class match [IP::client_addr] equals MyIPList] } { pool alternate_pool } else { HTTP::redirect "https://[HTTP::host]/underconstruction.html" } }
Samir_Jha_52506
Nov 06, 2018Noctilucent
You can use LTM policy to achieve requirement.
However iRule is also choice. Create data group
MyIPList
and try below iRule.
when HTTP_REQUEST {
if { [class match [IP::client_addr] equals MyIPList] } {
pool alternate_pool
} else {
HTTP::redirect "https://[HTTP::host]/underconstruction.html"
}
}
- tihi_341714Nov 07, 2018Nimbostratus
Thanks a lot! I managed to get this working with an iFile.
Have a nice day!
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