Forum Discussion
THE_KING_249060
Nimbostratus
Jun 27, 2016iRules how to make the http_request seeping ip
I want to filter IP traffic and depends ip redirect me to certain pages . believes this code does not work. I hope and I can help will thank . when HTTP_REQUEST {
if { [IP::client_addr] equa...
- Jun 27, 2016
another example
when HTTP_REQUEST { set var_ip [IP::client_addr]
if { ($var_ip equals "192.168.2.4" or $var_ip equals "192.168.2.32" or $var_ip equals "192.168.1.2" or $var_ip equals "192.168.1.2") and ([HTTP::path] contains "Lynk.IVR.Mate") } { pool Pool_App_Server } else { drop }}
THE_KING_249060
Nimbostratus
Jun 27, 2016another example
when HTTP_REQUEST { set var_ip [IP::client_addr]
if { ($var_ip equals "192.168.2.4" or $var_ip equals "192.168.2.32" or $var_ip equals "192.168.1.2" or $var_ip equals "192.168.1.2") and ([HTTP::path] contains "Lynk.IVR.Mate") } {
pool Pool_App_Server
} else {
drop
}
}
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
