The max header size is obtained from attached HTTP profile. verify this behaviour by increasing the length from default of 24820 (==17*1460) to a larger value The max header length can be increased using " set httpProfile <profile name> -maxHeaderLen <length val>". ex) set httpProfile nshttp_default_strict_validation -maxHeaderLen 36500
So how to identify, ideal maxHeaderLen for your issue:
From logs "ns_send_epaqs_expr: csec: len:19016” , gives us the security expression length in bytes(sample below).
This is base64 encoded , so length of header required will be minimum 19016*4/3 = 25354 bytes. The default profile has length 17*1460 = 24820 bytes . This is the reason the scan is failing.
You can increase the value to 20*1460 = 29200.
This should work , else you can increase further to 21*1460 and so on…
Problem Cause
The issue is happening because while constructing response for /epaq request , the limit for max header length is exceeded for the default http profile.
This is because the customer has a large set of MAC addresses in EPA rules.