du -sh *|grep G
20 – FTP
21 – FTP
22 – SSH
25 – SMTP/EMAIL
26 – SMTP
43 – WHOIS
53 – BIND/DNS
80 – HTTP / Apache Web server
110 – POP3/EMAIL
143 – IMAP
443 – HTTPS / Apache Web server SSL
465 – SMTP/EMAIL SSL/TLS
873 – RSYNC
993 – IMAP/EMAIL SSL
995 – POP3/EMAIL SSL
2030 – CWP Admin
2031 – CWP Admin SSL
2082 – CWP User Panel
2083 – CWP User Panel SSL
2086 – CWP Admin (same as 2030)
2087 – CWP Admin SSL (same as 2031)
2304 – CWP External API SSL (https, only for api access like whmcs )
3306 – MYSQL
____________________________________________________________
Recommended CSF/LFD Configuration for CWP
Configuration file: /etc/csf/[Link]
_____________________________________________________________
hostname ssl cert can be reason for not starting cwp, you can try .
(run as root)
Try to run:
Cannot connect to CWP panel
Code: [Select]
sh /usr/local/cwpsrv/htdocs/resources/scripts/generate_hostname_ssl
Then:
Code: [Select]
sh /usr/local/cwpsrv/htdocs/resources/scripts/restart_cwpsrv
Method :
Try connecting to your server with ssh again. You need to be logged in as root, so
use su or sudo
Code: [Select]
# /bin/bash /scripts/restart_cwpsrv
look for error messages. In my case, I had to do:
Code: [Select]
# journalctl -xe
If won't work after that, check if /etc/pki/tls/certs/[Link] exist
(it should be symbolic link linked to hostname [Link] located in the
same ...certs/ directory).
___________________________________________________________________________________
__________________________
[Link]
[Link]
[Link]
[Link]
firewall-on-centos-7/
___________________________________________________________________________________
____________________
##### systemctl status [Link]
##### systemctl status cwp-phpfpm
To Update CWP
### sh /usr/local/cwpsrv/htdocs/resources/scripts/update_cwp
___________________________________________________________________________________
__________
CSF/LFD Firewall is installed by default on all CWP servers.
Here you can find useful commands you can use from your terminal.
To get the list of all options please use this commands
csf --help
man csf
Configuration location is in the folder /etc/csf/
Main configuration file: /etc/csf/[Link]
Enable CSF Firewall
csf -e
Disable CSF Firewall
csf -x
Restart CSF Firewall (iptables rules)
csf -r
Restart CSF/LFD Firewall (iptables rules and LFD service)
csf -ra
Restart LFD only
service lfd restart
Check blocked IP reason (replace IP with the IP address)
csf -g IP
grep "IP" /var/log/[Link]
Block IP (permanently)
csf -d IP
Block IP (temporarily for 24 hours, define in seconds)
csf -td IP 86400
Unblock IP
csf -dr IP
Whitelist IP (allow access to all ports)
csf -a IP
Whitelist IP range /24 (allow access to all ports)
csf -a [Link]/24
Whitelist (temporarily) IP range /24 for 24 hours (allow access to all ports,
define in seconds)
csf -ta [Link]/24 86400
Remove all temporary IP blocks
csf -tf
Remove all permanent IP blocks
csf -df
__________________________________________________