Forum Discussion
Ranvir_Floura_7
Nimbostratus
Mar 02, 2007Redirect based on source IP address
Hello,
I have a iRule question on version 4.6.2 of Big-IP. What I am trying to set up is during maintenance windows, allow only a specific IP (or a group of IP address) to be able to connect to ...
Martin_Machacek
Mar 07, 2007Historic F5 Account
Ranvir,
it won't work, assuming that the limited_myweb rule is used by the virtual servicing the http://limited.mywebapp.com site. Client 192.168.10.10 won't be able to connect at all.
In order to provide different response during maintenance, you may use following configuration:
pool www_servers {
fallback "http://www.mywebapp.maintenance.com"
member 1.1.1.1:80
member 1.1.1.2:80
}
pool servers {
member 1.1.1.1:*
member 1.1.1.2:*
}
rule myweb {
if(client_addr == 192.168.10.10) {
use pool servers
} else {
use pool www_servers
}
}
virtual www.mywebapp.com:80 {
use rule myweb
}In order to enter maintenance mode, you need to disable nodes in pool www_servers which triggers the fallback URL to delivered as redirect location. This is achieved using command:
bigpipe node 1.1.1.1:80 1.1.1.2:80 disableClient 192.168.10.10 is connecting via pool servers whose members remain enabled.
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
