To improve security and mitigate potential threats to our CyberPanel server, I plan to implement the following measures. I would like to confirm if there are any potential downsides or operational issues related to these changes:
- Disable Root Access:
- Disabling direct root login via SSH.
- Using a
wheel
user with sudo privileges for administrative tasks.
- Disable Port 7080:
- Closing port 7080 to prevent access to the OpenLiteSpeed (OLS) login panel.
- Disable CyberPanel Login:
- Running the following commands to stop and disable the CyberPanel login service:
systemctl stop lscpd
systemctl disable lscpd
Questions:
- Are there any critical services or features dependent on port 7080 that would break if it’s disabled?
- Does stopping and disabling the
lscpd
service impact server performance, website functionality, or essential CyberPanel features?
My goal is to ensure the server remains secure while maintaining its core functionality. Please let me know if there are better alternatives or additional steps to consider.
Thank you!
Hello @gringofrijolero
Disabling the CyberPanel service will have a significant impact on your server performance, websites functionality, and in overall essential CyberPanel features.
Security recommendations:
- SSH Key-Based Authentication
- Two-Factor Authentication
- ACL
- Imunify 360
- Password Protect OpenLiteSpeed with Basic Auth and Realms
- Secure your MariaDB/Mysql
All your recommendations would have not prevented that last hack. They used lscpd service to gain access to your server, so the only real solution is to shut it down when you don’t need it.
But there could be a lot of other related tasks that uses lscpd service, so it’s not a true solutions either. The only solution is to migrate to more competent hosting panel.
Please note that no system can ever be 100% secure. This year alone almost the top free alternatives to cyberpanel had critical vulnerabilities and they involved services created by respective collectives just like lscpd.
It is imperative that you take precautions to protect your system, or any system for that matter.
“Cybersecurity is not a one-time event; it’s an ongoing process.” – John Chirhart