A recently conducted security scan highlighted that several ports were open and therefore presented a security vulnerability: 2052 2053 2082 2083 2086 2087 …
I ran sudo nmap -sS -Pn -p 2052 -T4 -vv --reason xxx.xxx.xxx.xxx and found that 2052 was open.
Why is port 2052 (and presumably the other ports listed) open even though they should presumably be blocked by the firewall?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
This comment has been deleted
Hi there,
Looking at the ports it seems like a cPanel/WHM server. Are you using CSF as the firewall?
If so you need to explicitly close the ports via CSF by removing them from the Allowed hosts list in the /etc/csf/csf.conf file and then restarting CSF with this command:
csf -r
Also if the ports are already closed, any IP addresses that have been allowed via CSF would have access to all ports even though the ports are closed. So you need to remove the IP address of the penetration testing company from the CSF allow list in order to have valid results.
Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.