VPS_DOCS

Security Hardening

Advanced security measures to protect against brute force attacks and ensure system integrity.

01Fail2ban

Ban IPs that show malicious signs (too many password failures, etc.).

Terminal
sudo apt install fail2ban -y
sudo systemctl enable fail2ban
sudo systemctl start fail2ban

02Unattended Upgrades

Automate security updates to keep your system protected without manual intervention.

Terminal
sudo apt install unattended-upgrades -y
sudo dpkg-reconfigure -plow unattended-upgrades
# Select 'Yes' in the dialog

03Time Synchronization

Ensure accurate system time for logs and security protocols.

Terminal
# Set timezone
sudo timedatectl set-timezone America/New_York

# Enable NTP
sudo timedatectl set-ntp true