iRules how to make the http_request seeping ip
Problem this snippet solves:
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 .
Code :
when HTTP_REQUEST {
if { [IP::client_addr] equals "192.168.1.1" && "192.168.2.1" && "192.168.2.1" && "192.168.9.1" && [HTTP::uri] ends_with "/"
}
{
pool Pool_App_Server
}
else
{
drop
}
}Tested this on version:
11.6Published Jun 27, 2016
Version 1.0THE_KING_249060
Nimbostratus
Joined May 05, 2019
THE_KING_249060
Nimbostratus
Joined May 05, 2019
3 Comments
- Can you please post this to the https://devcentral.f5.com/s/questions section? Codeshare is for sharing complete working or helpful code, not code-related questions. Cheers!
- THE_KING_249060
Nimbostratus
I am sorry - No problem. You'll get quicker and better responses in the Answers section. Just want to make sure you're taken care of!.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)