does anyone experience this blank screen problem using Comodo WAF plugin? how do you solve this?
This is what my current config looks like on /etc/nginx/nginx-modsecurity.conf
All folders are set to 755 and files are set to 644 in /usr/local/directadmin/plugins/comodo_waf
I do test whether mod_security is working of my site to see if the log is generated: curl "http://mywebsite.com/?q='1 OR 1=1"
I check tail -f /var/log/nginx/modsec_audit.log and seems like it's generated a log "[{"message":"COMODO WAF: SQLmap attack detected"
nginx is running:
httpd is running:
I'm using nginx_apache. Why the UI is blank ? I check php log also it doesn't generate any errors. checking nginx and apache logs nothing found.
This is what my current config looks like on /etc/nginx/nginx-modsecurity.conf
Code:
# Default recommended configuration
SecRuleEngine On
SecRequestBodyAccess On
#SecDefaultAction "phase:2,deny,log,status:406"
SecRequestBodyLimitAction ProcessPartial
SecResponseBodyLimitAction ProcessPartial
SecRequestBodyLimit 13107200
SecRequestBodyNoFilesLimit 131072
SecAuditLogFormat JSON
SecPcreMatchLimit 250000
SecPcreMatchLimitRecursion 250000
SecCollectionTimeout 600
SecDebugLog /var/log/nginx/modsec_debug.log
SecDebugLogLevel 0
SecAuditEngine RelevantOnly
SecAuditLog /var/log/nginx/modsec_audit.log
SecUploadDir /tmp
SecTmpDir /tmp
SecDataDir /tmp
SecTmpSaveUploadedFiles on
# ModSecurity Core Rules Set and Local configuration
Include /etc/modsecurity.d/*.conf.main
Include /etc/modsecurity.d/*.conf
All folders are set to 755 and files are set to 644 in /usr/local/directadmin/plugins/comodo_waf
Code:
755 drwxr-xr-x 6 diradmin root 4.0K Jun 19 15:50 .
711 drwx--x--x 6 diradmin diradmin 4.0K Jun 19 15:50 ..
755 drwxr-xr-x 3 diradmin root 4.0K Oct 22 2019 admin
644 -rw-r--r-- 1 diradmin root 6 Jun 20 09:02 available_version.txt
755 drwxr-xr-x 2 diradmin root 4.0K Jun 19 15:50 hooks
755 drwxr-xr-x 5 diradmin root 4.0K Jun 19 15:50 images
644 -rw-r--r-- 1 diradmin root 280 Jun 19 15:50 plugin.conf
755 drwxr-xr-x 2 diradmin root 4.0K Oct 22 2019 scripts
I do test whether mod_security is working of my site to see if the log is generated: curl "http://mywebsite.com/?q='1 OR 1=1"
I check tail -f /var/log/nginx/modsec_audit.log and seems like it's generated a log "[{"message":"COMODO WAF: SQLmap attack detected"
nginx is running:
Code:
● nginx.service - The nginx HTTP and reverse proxy server
Loaded: loaded (/etc/systemd/system/nginx.service; enabled; vendor preset: disabled)
Active: active (running) since Sat 2020-06-20 09:19:34 +08; 7h ago
Process: 1531093 ExecStop=/bin/kill -s QUIT $MAINPID (code=exited, status=0/SUCCESS)
Process: 1535025 ExecReload=/bin/kill -s HUP $MAINPID (code=exited, status=0/SUCCESS)
Process: 1532328 ExecStart=/usr/sbin/nginx -c /etc/nginx/nginx.conf (code=exited, status=0/SUCCESS)
Process: 1531987 ExecStartPre=/usr/sbin/nginx -t -c /etc/nginx/nginx.conf (code=exited, status=0/SUCCES>
Main PID: 1532329 (nginx)
Tasks: 3 (limit: 25004)
Memory: 27.3M
CGroup: /system.slice/nginx.service
├─1532329 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf
├─1535152 nginx: worker process
└─1535156 nginx: worker process
Jun 20 09:19:33 s.serverserverserverserverserver.com systemd[1]: Starting The nginx HTTP and reverse proxy server...
Jun 20 09:19:33 s.serverserverserverserverserver.com nginx[1531987]: nginx: the configuration file /etc/nginx/nginx.conf syn>
Jun 20 09:19:33 s.serverserverserverserver.com nginx[1531987]: nginx: configuration file /etc/nginx/nginx.conf test is>
Jun 20 09:19:34 s.serverserverserver.com systemd[1]: Started The nginx HTTP and reverse proxy server.
Jun 20 09:20:01 s.serverserver.com systemd[1]: Reloading The nginx HTTP and reverse proxy server.
Jun 20 09:20:01 s.server.com systemd[1]: Reloaded The nginx HTTP and reverse proxy server.
httpd is running:
Code:
[root@earth extra]# systemctl status httpd
● httpd.service - The Apache HTTP Server
Loaded: loaded (/etc/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: active (running) since Sat 2020-06-20 09:05:59 +08; 7h ago
Process: 1476273 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS)
Process: 1534950 ExecReload=/usr/sbin/httpd $OPTIONS -k graceful (code=exited, status=0/SUCCESS)
Main PID: 1476279 (httpd)
Status: "Total requests: 1004; Idle/Busy workers 100/0;Requests/sec: 0.0355; Bytes served/sec: 382 B/s>
Tasks: 343 (limit: 25004)
Memory: 27.7M
CGroup: /system.slice/httpd.service
├─1476279 /usr/sbin/httpd -DFOREGROUND
├─1535220 /usr/sbin/httpd -DFOREGROUND
└─1535225 /usr/sbin/httpd -DFOREGROUND
Jun 20 09:05:59 s.server.com systemd[1]: Stopped The Apache HTTP Server.
Jun 20 09:05:59 s.server.com systemd[1]: Starting The Apache HTTP Server...
Jun 20 09:05:59 s.server.com systemd[1]: Started The Apache HTTP Server.
Jun 20 09:06:01 s.server.com systemd[1]: Reloading The Apache HTTP Server.
Jun 20 09:06:01 s.server.com systemd[1]: Reloaded The Apache HTTP Server.
Jun 20 09:20:01 s.server.com systemd[1]: Reloading The Apache HTTP Server.
Jun 20 09:20:01 s.server.com systemd[1]: Reloaded The Apache HTTP Server.
I'm using nginx_apache. Why the UI is blank ? I check php log also it doesn't generate any errors. checking nginx and apache logs nothing found.
Last edited: