Forum Discussion
Bob_Z_148422
Nimbostratus
Feb 01, 2017What can I do in an iRule on a rule in an AFM policy
I have a IP forwarding VS that acts as a default gateway for my network. I also want to log the HTTP traffic that passes through that VS. I created an iRule on the http rule on the AFM policy linked ...
Stanislas_Piro2
Cumulonimbus
Feb 02, 2017Hi,
AFM irule can be used like that:
create a Standard VS with HTTP profile enabled, then enable this irule to disable HTTP profile for non HTTP services
when CLIENT_ACCEPTED {
if {[TCP::local_port] equals 80} {
HTTP::enable
} else {
HTTP::disable
}
}
then, in AFM rule, you can display a HTTP blocking page with irule :
when HTTP_REQUEST {
HTTP::respond 200 content {
Dropped
Your request is dropped
} noserver
}
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