How to Secure Your VPS

How to Secure Your VPS (Initial Hardening Guide)

Overview

At UP-NETWORK, all VPS instances are delivered with a clean and unconfigured operating system.

Except for:

  • Hostname

  • Network configuration

  • Root credentials

  • Basic VMManager6 setup

No additional security hardening is applied by default.

👉 It is the customer’s responsibility to secure the system before production use.

This guide explains the essential security steps to properly protect your VPS.


Why Securing Your VPS Is Important

An unsecured VPS is vulnerable to:

  • Brute-force attacks

  • Malware infections

  • Data breaches

  • Cryptomining abuse

  • Service disruption

  • Blacklisting of your IP address

Public servers are scanned automatically within minutes after deployment.

⚠️ A fresh VPS without protection is at risk.


Step 1 — Update the Operating System

Always start by updating your system.

Debian / Ubuntu

Rocky / Alma / CentOS

Reboot if required:


Step 2 — Create a Non-Root User

Never use root for daily administration.

Create a user

Grant sudo privileges

Test login

Should return:


Step 3 — Secure SSH Access

3.1 Change Default SSH Settings

Edit SSH configuration:

Modify:

➡️ Choose a custom port (example: 2222).

Restart SSH:


On your local computer:

Upload your key:

Test login:


Step 4 — Configure Firewall

A firewall is mandatory.

Using UFW (Debian/Ubuntu)

Check status:


Using Firewalld (RHEL-based)


Step 5 — Install Fail2Ban (Anti-Bruteforce Protection)

Fail2Ban blocks malicious login attempts.

Installation

Enable:


Basic Configuration

Create local config:

Ensure SSH protection:

Restart:

Check status:


Step 6 — Enable Automatic Security Updates

Debian / Ubuntu


RHEL-based


Step 7 — Secure Network Services

Disable Unused Services

List running services:

Stop unnecessary services:

Only expose what you need.


Bind Services to Private IP (When Possible)

For internal services (databases, admin panels):

Bind them to:

or private VXLAN network IP.

Example (MySQL):


Step 8 — Secure Web Servers (If Applicable)

HTTPS with Let’s Encrypt

Install Certbot:

Generate certificate:

Auto-renew:


Enable Security Headers

Example (Nginx):


Step 9 — Backup Strategy (Critical)

Security also means data protection.

We strongly recommend:

  • Offsite backups

  • Automated backups

  • Encrypted backups

Minimum setup:

or

  • BorgBackup

  • Restic

  • S3-compatible storage

Test restoration regularly.


Step 10 — Monitoring & Logs

Enable Log Monitoring

Check logs:

Install logwatch:


Resource Monitoring

Recommended tools:

  • htop

  • glances

  • netdata

Example:


Step 11 — Kernel & System Hardening (Advanced)

For advanced users:

  • Disable ICMP redirects

  • Enable TCP SYN cookies

  • Restrict kernel modules

Example:

Add:

Apply:


Before going live, verify:

✅ System fully updated ✅ Root login disabled ✅ SSH key authentication ✅ Firewall active ✅ Fail2Ban running ✅ Automatic updates enabled ✅ Backups configured ✅ HTTPS enabled ✅ Unused services removed


Managed Security Services (Optional)

If you prefer a fully managed environment, UP-NETWORK offers:

  • VPS Hardening

  • Security Audits

  • Managed Firewall

  • Backup Management

  • Incident Response

Contact our support team for professional security services.


Responsibility Disclaimer

UP-NETWORK provides infrastructure only.

Customers are responsible for:

  • System configuration

  • Security hardening

  • Software updates

  • Data protection

  • Compliance

We cannot be held responsible for breaches caused by misconfiguration.


Need Help?

If you need assistance securing your VPS:

Support: [email protected], client area, +41 (0) 22 519 72 24 Client Area: https://manager.up-network.charrow-up-right

Our engineers are available to help you. The Basic VPS range includes basic support only, without advanced support. Managed services packages are available from CHF 150 per hour (excl. VAT), billed in 15-minute increments.

For the PRO or PERFORMANCE ranges, we can provide more in-depth assistance within reasonable limits; however, managed services still apply.

Support is guaranteed during our official business hours (Monday to Thursday from 10 a.m. to 6 p.m., and Friday from 10 a.m. to 4 p.m.). Outside these hours, and without a contractual agreement, no support is guaranteed. ⇒ https://up-network.ch/services/managed-infrastructurearrow-up-right

Last updated