Linux Commands
Linux Commands
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/csf.conf
_____________________________________________________________
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
Code: [Select]
# journalctl -xe
To Update CWP
### sh /usr/local/cwpsrv/htdocs/resources/scripts/update_cwp
___________________________________________________________________________________
__________
csf --help
man csf
Configuration location is in the folder /etc/csf/
Main configuration file: /etc/csf/csf.conf
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
csf -g IP
grep "IP" /var/log/lfd.log
Block IP (permanently)
csf -d IP
Block IP (temporarily for 24 hours, define in seconds)
csf -dr IP
Whitelist IP (allow access to all ports)
csf -a IP
Whitelist IP range /24 (allow access to all ports)
csf -a 192.168.0.0/24
Whitelist (temporarily) IP range /24 for 24 hours (allow access to all ports,
define in seconds)
csf -tf
Remove all permanent IP blocks
csf -df
__________________________________________________