Domain

Bare Metal Server Security: What to Configure Before Going Live

Bare Metal Server Security: What to Configure Before Going Live

A newly installed bare metal server is not finished just because the operating system is running. Before the server starts handling real websites, databases or business applications, take some time to close unnecessary access, update the software and make sure you have a way to recover if something goes wrong.

Security hardening is not a one-time switch. The goal is to create a sensible baseline and then keep the server maintained as software, users and applications change.

Start with the principle of minimum access

Every service exposed to the internet creates another place that needs to be maintained. Start by asking a simple question about each listening service: does the server actually need this to be reachable from the public internet?

If the answer is no, restrict it to the appropriate private network or remove the service. Fewer exposed services generally mean fewer things to monitor and secure.

Secure administrator access

Do not use shared administrator credentials for routine work. Create individual accounts for people who need access and give each account only the permissions required for the job.

For Linux servers, use SSH keys where appropriate and disable direct root login when your administration model allows it. For Windows servers, use strong administrator credentials, restrict RDP exposure and consider VPN or another controlled access path instead of leaving management ports broadly accessible.

Keep emergency access documented. A security change that locks everyone out is not useful, so make sure you have a tested recovery route before changing remote-access settings.

Apply operating system and software updates

Install current security updates before putting the server into production. This includes the operating system and important services such as the web server, database, PHP or other runtime, control panel and application dependencies.

After the initial update, establish a routine for reviewing available updates. Security maintenance is much easier when it is scheduled rather than remembered only after a problem appears.

Configure the firewall deliberately

A firewall should reflect the services the server actually provides. A typical web server may need HTTP and HTTPS access, while administrative access should be restricted as much as practical.

Do not copy a firewall rule set from another server without understanding it. Ports that are necessary for one application may be unnecessary on another.

After applying the rules, test both the services that should be reachable and the ports that should not be reachable. A firewall configuration is only useful if its actual behaviour matches your intended policy.

Review SSH and RDP exposure

Remote administration deserves special attention because these services are common targets for automated login attempts.

For SSH, use key-based authentication where appropriate, avoid unnecessary password-based access, keep the software updated and restrict access by network or VPN when practical.

For Windows RDP, avoid exposing administrative access broadly when a safer access path is available. Use strong authentication, restrict who can connect and review Windows security logs for unexpected login activity.

Remove software and services you do not need

A fresh server often contains packages and services that were installed for convenience or as part of a broader operating-system installation. If a service is not required, consider disabling or removing it.

This is especially useful when preparing a dedicated server for one specific application. A smaller, clearly understood software footprint is easier to maintain than a server full of services that nobody remembers installing.

Protect the application, not just the server

Operating-system hardening does not protect an insecure application. Keep the website, CMS, plugins, frameworks and dependencies updated. Remove unused plugins and test application permissions.

For database-driven applications, do not expose the database service publicly unless there is a clear requirement. Application credentials should not be placed in publicly accessible directories, and production secrets should be handled carefully.

Backups need to survive a server failure

A backup stored on the same physical server is not a complete recovery strategy. If the server suffers a serious disk problem, filesystem corruption or another host-level incident, the production data and local backup may become unavailable together.

Keep important backups on separate storage or another system. Decide how frequently backups should run and how long they should be retained. Most importantly, test restoration periodically. A backup that has never been restored is an assumption, not a proven recovery plan.

Monitor the server after deployment

Security is easier to manage when you can see what is happening. Monitor authentication events, system resources, disk health, application errors and important service status.

For Linux, review authentication and system logs regularly. For Windows, review relevant Event Viewer logs and security events. If the server hosts a busy application, also monitor application-level errors rather than relying only on CPU and RAM graphs.

Protect the server from disk-space surprises

Logs, temporary files, database growth and backups can consume storage faster than expected. A full filesystem can cause application failures that initially look unrelated to disk usage.

Set up sensible log rotation and monitor available disk space. If a server regularly approaches its storage limit, investigate why instead of repeatedly deleting files manually.

Use separate accounts for applications where possible

Applications should not all run with unrestricted administrator privileges. Where the software supports it, use dedicated service accounts and limit their filesystem and database permissions.

This also makes troubleshooting easier because activity can be tied to a specific service instead of one shared administrative identity.

Before the server goes live

  1. Operating system and major software packages are updated.
  2. Unused services have been removed or disabled.
  3. Administrative accounts have been reviewed.
  4. SSH or RDP access is restricted appropriately.
  5. Firewall rules have been tested.
  6. Application and database access are limited to what is required.
  7. Production secrets are not publicly exposed.
  8. Backups run to separate storage.
  9. A restore test has been completed for important data.
  10. Monitoring and alerting are active.
  11. Disk space and log growth are being monitored.

Security after launch

The checklist above is a starting point, not the end of the process. Review user accounts when people leave a project, remove old access keys, patch software regularly and revisit firewall rules when applications change.

It is also worth keeping a short record of what is installed on the server, which ports are intentionally exposed, where backups are stored and who has administrative access. That documentation becomes extremely useful when the server needs maintenance months later.

A secure bare metal server is not defined by one security product or one configuration file. It is the result of limiting unnecessary access, maintaining the software, protecting credentials, keeping independent backups and paying attention to what the machine is actually doing.

Still need help?

Our support team is available 24/7 to assist you with any hosting questions.

Contact Support