Forum Discussion
dyobbs_25515
Jul 18, 2012Nimbostratus
IP Intelligence iRule
line 1: [wrong args] [set ip_reputation_categories [IP::reputation [IP::client_addr]] set is_reject 0 if {($ip_reputation_categories contains "Windows Exploits")} { set is_reject 1 } if {($ip_reputation_categories contains "Web Attacks")} { set is_reject 1 } if {($is_reject)} { log local0. "Attempted access from malicious IP address [IP::client_addr] ($ip_reputation_categories), request was rejected" HTTP::respond 200 content "Rejected Request The request was rejected.
Attempted access from malicious IP address" } ]
where's the issue? Many thanks!
- BT_90520Nimbostratustry this
when HTTP_REQUEST { use [HTTP::header values "X-Forwarded-For"] in replacement of [IP::client_addr] if using the x forwarded for testing set ip_reputation_categories [IP::reputation [IP::client_addr]] set is_reject 0 if {($ip_reputation_categories contains "Windows Exploits")} { set is_reject 1 } if {($ip_reputation_categories contains "Web Attacks")} { set is_reject 1 } if {($ip_reputation_categories contains "Scanners")}{ set is_reject 1 } if {($ip_reputation_categories contains "Proxy")}{ set is_reject 1 } if {($is_reject)} { log local0. "Attempted access from malicious IP address [IP::client_addr]($ip_reputation_categories), request was rejected" HTTP::respond 200 content " Rejected Request The request was rejected. Attempted access from malicious IP 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