Control Web Panel
WebPanel => CentOS 7 Problems => Topic started by: mrbekir on July 09, 2023, 04:27:06 PM
-
hello friends, I can't access when I open the firewall. But when I turn it off, I can login to the server. How do you think I should adjust?
-
check the open ports for what your trying to access, if your trying to access cwp, make sure cwp ports added, by default these ports should be open
80 http
22 ssh
443 https
25 mail
23 dns
2031 cwp admin
# Allow incoming TCP ports
TCP_IN = "20,21,22,25,53,80,110,143,443,465,853,587,993,995,2030,2031,2082,2083,2086,2087,2095,2096"
# Allow outgoing TCP ports
TCP_OUT = "2703,20,21,22,25,53,80,110,113,443,2030,2031,2082,2083,2086,2087,2095,2096,853,587,993,995,2080,2443"
-
check the open ports for what your trying to access, if your trying to access cwp, make sure cwp ports added, by default these ports should be open
80 http
22 ssh
443 https
25 mail
23 dns
2031 cwp admin
# Allow incoming TCP ports
TCP_IN = "20,21,22,25,53,80,110,143,443,465,853,587,993,995,2030,2031,2082,2083,2086,2087,2095,2096"
# Allow outgoing TCP ports
TCP_OUT = "2703,20,21,22,25,53,80,110,113,443,2030,2031,2082,2083,2086,2087,2095,2096,853,587,993,995,2080,2443"
hello, all the ports you mentioned are active. what else can i do?
-
Whitelist your IP address in /etc/csf/csf.allow