Securing a Linux Server
Is your web server up and running, but no one knows exactly how secure it is? I'll audit your Linux server, close any security gaps, and configure it so that updates, backups, and monitoring aren't left to chance. Everything will be documented so that you or your team can maintain the current state.
How to Recognize the Need
- The server was set up years ago, and no one has taken a thorough look at it since then.
- Updates are installed irregularly or not at all.
- You can log in via SSH using a password and as root.
- Failed login attempts keep appearing in the logs.
- There are backups, but it has never been tested whether anything can actually be restored from them.
- Several people or agencies have access, and no one knows anymore which ones are still needed.
My Approach
1. Assessment
πI'm getting an overview: operating system and versions, running services, open ports, users and access rights, configuration of the web server, database, and containers, and existing backups.
2. Hardening
π‘οΈI close what doesn't need to be open and secure what needs to be open. Typical measures include SSH with key-based authentication only, a firewall, protection against brute-force attacks, automatic security updates, and minimal privileges.
3. Backups and Monitoring
πΎBackups run automatically, are stored in multiple locations, and are restored periodically for testing purposes. Monitoring and notifications alert you to outages, full hard drives, and expiring certificates before anything goes wrong.
4. Document and Hand Over
πYou'll receive a PDF guide explaining what's been set up, why, and what needs to be done on a regular basis. If you'd like, I can handle the ongoing maintenance or automate the setup so that a new server can be set up just as securely in a matter of minutes.
You don't even know who has access to the server? Now is the perfect time to take stock.
Describe the serverWhat Is Typically Tested
- Access: SSH configuration, keys instead of passwords, no direct root login, users and keys that are no longer needed.
- Network: Firewall rules, open ports, databases, and administrative interfaces that should not be publicly accessible.
- Updates: Status of the operating system, PHP, Node.js, database, and web server; automatic security updates.
- Web server: HTTPS, certificate renewal, security headers, file and directory permissions.
- Containers: Docker images should be up to date, with no unnecessary permissions and no passwords in the image.
- Backups and Logs: What is backed up, where, for how long, and has the recovery process been tested?
Technologies
Debian, Ubuntu, and other Linux distributions; OpenSSH; ufw/nftables; fail2ban; unattended-upgrades; nginx; Apache; Let's Encrypt; MySQL/MariaDB; Docker; Kubernetes; shell scripting; monitoring and notifications.
How You Benefit
- Fewer vulnerabilities: What isn't exposed can't be attacked.
- Up-to-date systems: Security updates are released regularly, rather than waiting for the next incident.
- Recoverability: Tested backups turn a total system failure into just an annoying afternoon.
- Traceability: The documentation shows what has been set up, even for the next administrator.
Frequently asked questions
Does this require the server to be set up again?
Usually not. Most measures can be implemented without interrupting operations. If a system is so outdated that rebuilding it from scratch is safer and more cost-effective, I'll say so openly after conducting an assessment.
Is there any downtime?
Generally, these are only brief, scheduled restarts of individual services. We will coordinate the timing with you in advance.
I have a managed server with my hosting provider. Do I still need this?
That depends on what the hosting provider handles. Often, they take care of the operating system, but not your application, your user accounts, or your backups. I'll check where the gap lies between the hosting provider and you.
Will you also be able to maintain the server afterward?
Yes. I can handle updates, monitoring, and backups on an ongoing basis β see Website Maintenance β or automate and document everything so your team can do it on its own.
From Real-World Experience
- I have been setting up and managing Linux servers for many years β ranging from individual web servers to Docker and Kubernetes environments β and have managed large websites with nearly 1 million visitors per year.
- On a customer's server, the database and admin interface were publicly accessible with a default password. After assessing the situation: a firewall, access only via SSH tunnels, new passwords, fail2ban, and a list of access points that no one had used in years.
- During testing, a "existing" backup turned out to be empty because a cron job had silently failed after an update. Since then, the backup has been running externally, is being monitored, and is restored once a month as a test.
For more information, visit the About Me page.
Related Services
To test the application itself, use a website penetration test; to secure online stores, use "Secure Your Online Store." For operations involving Docker, CI/CD, and clean deployments, there are DevOps and infrastructure solutions. If the server has already gone down or been compromised, the IT emergency service for businesses can help.