I’m a problem to the customer with an iRule. He implemented on his VS (LTM v10.2.x) this iRule “Selective SNAT” on below:
when
LB_SELECTED
{
if {[IP::addr “[IP::client_addr]/24” equals “[LB::server addr]/24”]} {
snat automap
}
}
He has problem when download a PDF file from pool member because he download a corrupted file. 5 mounth ago I disabled the default “http” profile, but now I need this profile for iRule application on Virtual Server.
So, I believe that there is a good way to solve this issue, and then what could be the http profile parameter to solve this issue? Could it be possible to manage the compression section? http profile has default configuration.
Compression is the first thing that came to my mind. I’d try enabling Response Chunking and setting it to Rechunk first. If that still doesn’t solve the issue I’d suggest adding application/pdf to the compression content list exclude list. If that doesn’t work, capture the traffic and find out what MIME/content type is being used and exclude that, or of course, just turn off compression.
the customer has a default http profile (based on parent) that it used only for iRule application on Virtual Server, so it keep default configuration and I noticed that compression is disabled.
I could disable compression from content list exclude list as you indicated and performing test.
You’re right, compression is disabled by default. In that case there’s no need to modify the HTTP Profile. Can you remove the iRule from the Virtual Server and test and see if that makes a difference, just so we can rule that out.
for your information I solved the issue configuring Virtual Server without http profile, because there is no need to inspect http packets until Layer 7.