Forum Discussion
amit_128525
Nimbostratus
Dec 05, 2013irule rejecting all the request
we have created below irule in which we want to allow one ip address to access the normal website all other request should be rejected but when we place below rule url is not opening even for 10.1.1....
Lee_Payne_53457
Cirrostratus
Dec 05, 2013We use something similar to the below to block access to some sites, unless you are aplpying the iRule to multiple VIP's or have multiple DNS names pointing to the same VIP I wouldn't bother looking in the host header it adds needless complication.
set clientip [IP::client_addr]
if { [IP::addr 10.1.1.1/32 equals $clientip] } {
pool pool_a
}
else {
reject
}
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