Posts

Showing posts from January, 2024

NGINX ModSecurity OWASP Web Application Firewall Rules Exclusion Template

https://drive.google.com/file/d/1iLyGOa0JXKVqHeR9YzhnUo4nlrPWiK4r/view?usp=sharing   ============================= cd /usr/local/modsecurity-crs/rules vi REQUEST-900-EXCLUSION-RULES-BEFORE-CRS.conf SecRule REQUEST_URI "@beginsWith /ABC/DefGhi" "id:1000017,phase:1,nolog,pass,ctl:ruleEngine=Off" ====================== nano -l /etc/nginx/modsec/modsecurity.conf 45 SecRequestBodyLimit 1048576000 46 SecRequestBodyNoFilesLimit 10485760 For Support, support@cybersecuritysolutions.raiseaticket.com

Ubuntu 23.10 : Build Secure Web Gateway for Web Application/Web Site Security

  https://drive.google.com/file/d/1XGjlcxsyQ_0yL0v_9IrwhB5QWCWPR-wY/view?usp=sharing For Support, support@cybersecuritysolutions.raiseaticket.com

Ubuntu 22.04 LTS : Build Secure Web Gateway for Web Application/Web Site Security

  https://drive.google.com/file/d/1lq74sWhEAWIOYW5djlGtTdHvDRg-s-nO/view?usp=sharing For Support, support@cybersecuritysolutions.raiseaticket.com

NGINX WARNING : could not build optimal server_names_hash...

 2024/01/19 12:22:38 [warn] 1476851#1476851: could not build optimal server_names_hash, you should increase either server_names_hash_max_size: 512 or server_names_hash_bucket_size: 64; ignoring server_names_hash_bucket_size ========================== To fix this , you need to uncomment out the line  server_names_hash_bucket_size 64; in  /etc/nginx/nginx.conf  file under http header. Then do , nginx -t nginx -s reload If you still see the log ,  2024/01/19 12:22:38 [warn] 1476851#1476851: could not build optimal server_names_hash, you should increase either server_names_hash_max_size: 512 or server_names_hash_bucket_size: 64; ignoring server_names_hash_bucket_size Increase the value of   server_names_hash_bucket_size 64; to server_names_hash_bucket_size 128; Then do , nginx -t nginx -s reload This line " server_names_hash_bucket_size " is available in /etc/nginx/nginx.conf file under http header. Accordingly it should fix the problem. For Support, support@cybersecuritysolu

Organizing a large nginx.conf file with multiple server instances can greatly improve manageability and efficiency

  https://drive.google.com/file/d/1hgtFvmspXgAo54nE9_ZLylDWgBkIUkxi/view?usp=sharing For Support, support@cybersecuritysolutions.raiseaticket.com

CRON JOB Template

 0 6 * * * /usr/bin/bash /root/clearcsfdeny.sh 0 5 * * * /usr/bin/bash /root/suricatarulesupdate.sh 30 5 * * * /usr/bin/bash /root/Clear_All_usage_log.sh 0 * * * * /usr/bin/python3 /root/notifications/send_sms_v9.py 0 * * * * /usr/bin/python3 /root/notifications/send_sms_v10.py For Support, support@cybersecuritysolutions.raiseaticket.com

Secure NGINX configuration template

  https://drive.google.com/file/d/1zHEHDqQwhUuZpLEUeyK1RJ3uRWuKdr7W/view?usp=sharing For Support, support@cybersecuritysolutions.raiseaticket.com