|
|
|
Ask HN: How to properly secure a server?
|
|
2 points
by Qision
592 days ago
|
|
Hi, I started playing around with a small VPS. To learn about security I followed a tutorial on Github [1] in which they talk about a lot of tools. I understand that ssh, ufw and fail2ban are the most important but for example should I use PSAD or CrowdSec? Basically I want to self host services and run web apps, so how can I know how much security do I need? Thanks for your help [1]: https://github.com/imthenachoman/How-To-Secure-A-Linux-Server |
|
Use a free solution, never used these. Are they even current?
For web, you'll need port 80, 443 open, and a port for ssh, default is 22. I would change ssh port to something higher as there are many bots that scan all of these known ports.Monitor your logs, and check for activity. access.log, syslog etc.