Security
Keys, passwords, firewalls and keeping a server patched.
Advanced Windows Security: Restricting PowerShell Execution Policies
Lock down PowerShell on your Windows VPS by setting execution policies per scope, enforcing them with Group Policy, and signing your own scripts so only trusted code runs.
- Advanced
- Windows VPS
- 6 min read
Tunnel Remote Desktop port 12230 through SSH
Carry Remote Desktop inside an encrypted SSH connection to your Windows VPS, connect mstsc to localhost, and only then tighten public access to port 12230.
- Advanced
- Windows VPS
- 5 min read
Fail2ban Custom Jails: Creating Filters for Specific Application Log Errors
Write regex filters for your own application logs, test them with fail2ban-regex, and deploy custom jails that ban repeat offenders without touching your SSH rules.
- Advanced
- Linux VPS
- 7 min read
Rename the built-in Administrator account
Rename the built-in Administrator account to cut down brute-force noise on Remote Desktop, using Rename-LocalUser or Local Security Policy, without locking yourself out.
- Intermediate
- Windows VPS · Admin RDP
- 4 min read
Incident Response: Preserving Forensic Evidence from a Compromised Linux Server
Capture memory, network state and logs from a compromised Linux VPS before anything changes, then image the disk and record a chain of custody.
- Advanced
- Linux VPS
- 5 min read
Disable root login and password authentication over SSH
Stop brute-force attempts by switching off root and password logins with a small SSH drop-in file, then verify the change from a second session.
- Intermediate
- Linux VPS
- 3 min read
Windows Server: Securing Remote Desktop Session Management (RDP) Best Practices
Lock down Remote Desktop session management on Windows Server — require Network Level Authentication, cap idle and disconnected sessions, audit logons and end sessions you do not recognise.
- Intermediate
- Windows VPS · Admin RDP
- 6 min read
Turn on automatic security updates (unattended-upgrades and dnf-automatic)
Keep your server patched without remembering to log in: set up unattended-upgrades or dnf-automatic, test it, and choose how kernel reboots happen.
- Beginner
- Linux VPS
- 2 min read
Configure firewalld on AlmaLinux and Rocky Linux
Learn the firewalld basics on AlmaLinux and Rocky Linux: zones, opening services and ports, permanent versus runtime rules, and IP-restricted access.
- Intermediate
- Linux VPS
- 2 min read
Linux Incident Response: Isolate a Compromised Server Without Downtime
A step-by-step Linux incident response workflow to isolate a compromised VPS at the network layer, capture volatile evidence and stop lateral movement without powering the server off.
- Advanced
- Linux VPS
- 7 min read
Disable Weak SSH Ciphers and MAC Algorithms on a Linux VPS
Edit sshd_config to allow only modern ciphers, MACs and key exchange algorithms, then verify the negotiation and keep a fallback session open.
- Advanced
- Linux VPS
- 6 min read
Microsoft Defender basics on Windows Server
Check Defender is running, update signatures, scan from PowerShell, and use exclusions only where a vendor recommends them.
- Beginner
- Windows VPS · Admin RDP
- 2 min read
Close unused ports and disable unneeded services on Linux
Fewer running services means fewer things to patch and attack. List what listens on your VPS, disable what you do not use, bind private services to localhost and firewall the rest.
- Beginner
- Linux VPS
- 5 min read
Use nftables sets for fast allowlists and blocklists
Build named nftables sets for SSH allowlists and IP blocklists, use intervals for CIDR ranges and timeouts for temporary bans, change elements live, and rate-limit per IP with dynamic sets.
- Advanced
- Linux VPS
- 6 min read
Change the SSH port safely without locking yourself out
Move SSH to another port in the right order: firewall first, SELinux and Ubuntu socket activation handled, both ports tested, then port 22 closed.
- Intermediate
- Linux VPS
- 3 min read
Get started with nftables: tables, chains and rules
Learn how nftables organises tables, chains and rules, build an inet filter table with a default-drop input chain that allows SSH and web traffic, and save it to nftables.conf.
- Intermediate
- Linux VPS
- 5 min read
Test firewall changes safely with an automatic rollback
Schedule an automatic undo before you change firewall rules. If a mistake blocks SSH, the old rules come back by themselves a few minutes later.
- Intermediate
- Linux VPS
- 5 min read
Secure Remote Desktop on Windows Server
Stop password-guessing on Remote Desktop with strong passwords, Network Level Authentication, a lockout policy and firewall rules limited to your IP.
- Intermediate
- Windows VPS · Admin RDP
- 3 min read
Create a sudo user on Ubuntu, Debian, AlmaLinux and Rocky Linux
Add a personal admin account with sudo rights, give it your SSH key, and test it properly before you stop logging in as root.
- Beginner
- Linux VPS
- 3 min read
Get email or Telegram alerts when Fail2ban bans an IP
Make Fail2ban tell you when it bans someone. Use the built-in email action, add a custom action that posts to Telegram or a webhook, and keep the alerts from flooding your inbox.
- Intermediate
- Linux VPS
- 5 min read
Read and tune UFW firewall logs
Turn on UFW logging at the right level, find [UFW BLOCK] lines in the journal or ufw.log, read the SRC, DPT and PROTO fields and keep log volume under control.
- Intermediate
- Linux VPS
- 5 min read
Restrict outgoing traffic with UFW egress rules
Switch UFW to deny outgoing traffic by default, then allow only DNS, NTP, HTTPS and package mirrors. Block outbound SMTP and avoid breaking system updates along the way.
- Advanced
- Linux VPS
- 5 min read
Set an account lockout policy against RDP password guessing
Lock accounts for a short time after repeated failed Remote Desktop logins, choose sensible threshold and duration values, and know how to unlock yourself if it happens.
- Intermediate
- Windows VPS · Admin RDP
- 5 min read
Write a custom Fail2ban filter and test it with fail2ban-regex
Build your own Fail2ban filter for an app that has no built-in one. Write a failregex with the HOST tag, set a datepattern, test it with fail2ban-regex and attach it to a new jail.
- Advanced
- Linux VPS
- 6 min read
Protect SSH from brute-force attacks with Fail2ban
Install Fail2ban, create a safe jail.local for SSH, check which addresses are banned and unban yourself if you mistype a password too often.
- Intermediate
- Linux VPS
- 2 min read
Put Remote Desktop behind a WireGuard VPN
Install WireGuard on your Windows server, connect your own computer as a client, then limit the RDP port 12230 rule to the VPN subnet so only VPN users can reach the login screen.
- Advanced
- Windows VPS · Admin RDP
- 5 min read
Other topics
- Getting startedYour first hour with a new server: access, logins and basics.66 guides
- Linux VPSSSH, packages, services and everyday Linux administration.41 guides
- Windows VPS & RDPRemote Desktop, Windows Server settings and Admin RDP tips.53 guides
- SecurityKeys, passwords, firewalls and keeping a server patched.86 guides
- Networking & DNSIP addresses, reverse DNS, ports and traffic.15 guides
- Control panelscPanel & WHM, Plesk, DirectAdmin and other panels on your VPS.101 guides
- Websites & appsWeb servers, WordPress, PHP, Node.js, SSL and app hosting.44 guides
- DatabasesMySQL, MariaDB, PostgreSQL, Redis and MongoDB on a VPS.56 guides
- Docker & DevOpsContainers, Git deploys, automation, monitoring and backups.55 guides
- Billing & accountInvoices, renewals, the client area and your account.7 guides
- TroubleshootingWhen something is not working: checks and fixes.43 guides