When using KB27038- Security Director Offline IDP (IPS) Signature update procedure [juniper.net] to upload Offline Signature Database Bundle to Junos Space, the upload fails for signature packages over 1GB.
This error may be seen in Junos Space logs:
Request body (Content-Length) is larger than the configured limit (1073741824).
Junos Space security measures using the upload screen are preventing file uploads over 1GB.
This problem exists in All Junos Space versions 21.1R1 and older. Patches released after April 26, 2021 may include a patch, check Patch release notes.
Check the current values:
grep "SecRequestBodyLimit\|SecRequestBodyNoFilesLimit\|SecRequestBodyInMemoryLimit" /etc/httpd/conf.d/mod_security.conf
SecRequestBodyLimit 1073741824 SecRequestBodyNoFilesLimit 1073741824 SecRequestBodyInMemoryLimit 1073741824
Backup current config file:
cp /etc/httpd/conf.d/mod_security.conf /home/admin/http_mod_security.conf.old
Update values:
sed -i 's/1073741824/1536000000/' /etc/httpd/conf.d/mod_security.conf
Confirm Values are modified:
Example output:
SecRequestBodyLimit 1536000000 SecRequestBodyNoFilesLimit 1536000000 SecRequestBodyInMemoryLimit 1536000000
Restart httpd (webproxy )process:
service httpd restart
systemctl restart httpd.service