Forum Discussion
player_72606
Nimbostratus
Apr 15, 2008FilterURI to Source IP
Hi,
I need to config an "Access-list" to permit a specific source-address to a specific uri for web-application management.
Other traffic to this uri from other source address should be directed to other uri.
how this can be done?
- Jason_Keating
Altostratus
Hiwhen HTTP_REQUEST{ if [HTTP::uri:] contains "web/application/management/uri" { if { [matchclass [IP::client_addr] equals $::trustedAddresses.......... } } }
- player_72606
Nimbostratus
What's wrong here, parse error : - Nicolas_Menant
Employee
First some parse error message would be welcome ^^when HTTP_REQUEST { if {[HTTP::uri] contains "GIBWeb/Screens/manage/mlogin.aspx"} { if {[matchclass [IP::client_addr] equals $::web_mng]} { log local0.info "Allowed client to uri: [IP::client_addr] requesting: [HTTP::uri]" } else { log local0. "Invalid client IP: [IP::client_addr] - discarding" discard } } }
- player_72606
Nimbostratus
Ok, now that the syntax is legal, the iRule itself doesn't work. - hoolio
Cirrostratus
What do you have in the $::web_mng class? You can either log it using 'log local0. "\$::web_mng: $::web_mng" or paste it in. $::web_mng should be an address datagroup with a format of:network 1.0.0.0 mask 255.0.0.0 network 2.2.0.0 mask 255.255.0.0 host 3.3.3.3
- player_72606
Nimbostratus
This is weird... - hoolio
Cirrostratus
The datagroup/class name is case sensitive. Are you sure that the class is named exactly "web_mng"? - Jason_Keating
Altostratus
Did you create the datagroup using Admin Console >> Local Traffic >> Data Groups > Create > Address ?
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