Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - JohnB17

Pages: [1]
1
CSF Firewall / CSF blocks all IPs except the ones in the whitelist
« on: June 05, 2022, 12:10:13 AM »
The CSF Firewall on my server is blocking all requests from IPs except the ones in the whitelist, but some ports still work like CWP admin and user panels, websites, Apache Tomcat. Anything that is not installed by CWP (such as Docker which I installed) doesn't work unless the client's IP is in the whitelist.

2
Apache on my server won't start because /etc/httpd/conf.d/ssl.conf is trying to get /etc/pki/tls/certs/localhost.crt which doesn't exist.

Apache logs:
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Sat 2022-04-30 03:51:20 UTC; 2s ago
     Docs: man:httpd(8)
           man:apachectl(8)
  Process: 5335 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
 Main PID: 5335 (code=exited, status=1/FAILURE)

Apr 30 03:51:20 cwp.johnbdev.cf systemd[1]: Starting The Apache HTTP Server...
Apr 30 03:51:20 cwp.johnbdev.cf httpd[5335]: AH00526: Syntax error on line 100 of /etc/httpd/conf.d/ssl.conf:
Apr 30 03:51:20 cwp.johnbdev.cf httpd[5335]: SSLCertificateFile: file '/etc/pki/tls/certs/localhost.crt' does not exist or is empty
Apr 30 03:51:20 cwp.johnbdev.cf systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Apr 30 03:51:20 cwp.johnbdev.cf systemd[1]: Failed to start The Apache HTTP Server.
Apr 30 03:51:20 cwp.johnbdev.cf systemd[1]: Unit httpd.service entered failed state.
Apr 30 03:51:20 cwp.johnbdev.cf systemd[1]: httpd.service failed.

Pages: [1]