Forum Discussion
Configuration of request adapt for ICAP AV scanning
Hi there.
I'm working on an implementation of request adaptation to an ICAP server, pretty much as per this design - https://support.f5.com/kb/en-us/products/big-ip_ltm/manuals/product/ltm-implementations-11-4-0/12.html
What I've found is that the VS will stream all HTTP traffic to the internal virtual server.
I'm trying to work out a way to only send POSTs to a single URL to the ICAP server. There is no way to do this via the request adapt profile, so I'm thinking either an iRule which turns on adapt enable for a given URL, or an LTM policy to action on said URL and forward to the internal virtual server.
Any suggestions appreciated :)
7 Replies
- Yann_Desmarest_
Nacreous
Hello,
You can add an irule similar to this one :
when HTTP_REQUEST { if {[HTTP::method] equals "POST" and [HTTP::header Content-Length] < 10000000 } { ADAPT::enable true } else { ADAPT::enable false } }Thus, you can force ICAP when the request is a POST and the body doesn't exceed a certain size
- davidfisher
Cirrus
The content you have mentioned would be in bits, right?
Hello,
You can add an irule similar to this one :
when HTTP_REQUEST { if {[HTTP::method] equals "POST" and [HTTP::header Content-Length] < 10000000 } { ADAPT::enable true } else { ADAPT::enable false } }Thus, you can force ICAP when the request is a POST and the body doesn't exceed a certain size
- davidfisher
Cirrus
The content you have mentioned would be in bits, right?
- Lewis_165664
Nimbostratus
Excellent, many thanks. I got it working exactly as needed as per below
when HTTP_REQUEST { if {[HTTP::method] equals "POST" and [HTTP::path] equals "/path/to/uri/location.aspx" } { ADAPT::enable true } else { ADAPT::enable false } } - RainingBlood_18
Nimbostratus
Hi, i just dropped by and saw this post while researching on this type of design. A lot of ICAP design post states that it needs ASM module. does it really need ASM module for this - https://support.f5.com/kb/en-us/products/big-ip_ltm/manuals/product/ltm-implementations-11-4-0/12.html
- stan_piron
Cumulonimbus
Hi,
ASM have the ICAP feature to include ICAP within security policy. But you can also filter upload with LTM using ICAP profile.
Recent Discussions
Related Content
* 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