Forum Discussion
Emad
Cirrostratus
Nov 26, 2013Allow specific URI from specific IP's in data group
I have data group class which contains IP Address of my network, i have to restrict some URI's to be access only from my network.
i am using this Irule but it is not working for me , earlier i was ab...
Stefan_Klotz
Cumulonimbus
Nov 26, 2013Hi,
I didn't see any logical issue here, can you insert some log statements in each if-block, to verify if your request will be catched as expected. For the moment I see two possibilities: 1. The URI isn't matching (maybe you can try "starts_with" or "contains") 2. The clientIP isn't matching your entries of the DGL Please try this one:if { ([HTTP::uri] eq "/abc/db") or ([HTTP::uri] eq "/abc/cd") } {
log local0. "URI matched: [HTTP::uri]"
if { not [class match [IP::client_addr] equals myAddresses] } {
log local0. "IP matched: [IP::client_addr]"
reject
}
}
Ciao Stefan 🙂
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