New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

Firewall problem, need help

Started by mrbekir, July 09, 2023, 04:27:06 PM

Previous topic - Next topic

mrbekir

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?

hill

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"

mrbekir

Quote from: hill on July 09, 2023, 11:14:35 PM
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?

overseer

Whitelist your IP address in /etc/csf/csf.allow