Top 6 Server Types in IT and Cybersecurity: Roles, Risks, Hardening
The six server types every IT and security professional should know are web servers (deliver websites, such as Nginx, Apache and IIS), application servers (run business logic, such as Tomcat or Node.js), database servers (store data, such as MySQL, PostgreSQL and SQL Server), mail servers (send and receive email over SMTP, IMAP and POP3), DNS servers (translate names into IP addresses), and file servers (share…
Topic: Cybersecurity Foundations in Cybersecurity & Ethical Hacking · Explainer
Quick answer: The six server types every IT and security professional should know are web servers (deliver websites, such as Nginx, Apache and IIS), application servers (run business logic, such as Tomcat or Node.js), database servers (store data, such as MySQL, PostgreSQL and SQL Server), mail servers (send and receive email over SMTP, IMAP and POP3), DNS servers (translate names into IP addresses), and file servers (share files over SMB or NFS). Each has its own ports, common attacks and hardening steps, and NIST publishes specific security guidance for most of them.
Key takeaways
- Knowing a server's role tells you which ports should be open and which attacks to expect.
- Database and file servers should never be directly reachable from the internet.
- Mail and DNS servers need protocol-specific protections (SPF, DKIM, DMARC, DNSSEC).
- All servers share the basics: patching, least privilege, logging and a hardening baseline.
- NIST SP 800-123 covers general server security.
Table of Contents
- How Do the Six Server Types Compare?
- What Does a Web Server Do?
- What Does an Application Server Do?
- What Does a Database Server Do?
- What Does a Mail Server Do?
- What Does a DNS Server Do?
- What Does a File Server Do?
- What Hardening Applies to Every Server?
- Where Should Each Server Sit in the Network?
- References
How Do the Six Server Types Compare?
| Type | Examples | Default ports | Typical attacks |
|---|---|---|---|
| Web | Nginx, Apache, IIS | 80, 443 | Web exploits, DDoS, defacement |
| Application | Tomcat, Node.js, .NET | 8080, 8443 (varies) | Deserialisation, injection, exposed admin consoles |
| Database | MySQL, PostgreSQL, SQL Server | 3306, 5432, 1433 | SQL injection via apps, weak credentials, exposure |
| Postfix, Exchange | 25, 587, 993 | Spoofing, open relay, credential attacks | |
| DNS | BIND, Unbound, Windows DNS | 53 | Cache poisoning, amplification, hijacking |
| File | Windows file server, Samba, NFS | 445, 2049 | Ransomware, over-shared folders |
What Does a Web Server Do?
A web server answers HTTP and HTTPS requests and serves pages or forwards requests to an application. Harden it by enforcing TLS 1.2 or later, removing default pages and directory listing, hiding version banners, and placing it behind a web application firewall. NIST SP 800-44 covers public web server security.
What Does an Application Server Do?
It runs the business logic behind a website or API. Keep it in an internal network segment reachable only from the web tier, remove or protect management consoles, keep frameworks and libraries patched, and run it as a non-administrative service account.
What Does a Database Server Do?
It stores and retrieves structured data. Never expose database ports to the internet, allow connections only from application servers, use separate least-privilege accounts per application, encrypt data at rest and in transit, and audit administrative access. The OWASP Database Security Cheat Sheet lists detailed settings.
What Does a Mail Server Do?
Mail servers transfer email using SMTP (RFC 5321) and let users read it with IMAP or POP3. Prevent open relaying, require TLS, publish SPF, DKIM and DMARC records to stop spoofing of your domain, and filter malware and phishing. NIST SP 800-45 covers email security.
What Does a DNS Server Do?
Authoritative DNS servers publish your domain's records; recursive resolvers look up names for users. Do not run open resolvers, sign zones with DNSSEC, restrict zone transfers, and protect registrar accounts with MFA. NIST SP 800-81-2 covers secure DNS deployment. See DNS poisoning explained.
What Does a File Server Do?
File servers share folders over SMB (Windows) or NFS (Linux). They are prime ransomware targets. Disable SMBv1, require SMB signing, remove "Everyone" permissions, keep offline or immutable backups, and alert on mass file changes.
What Hardening Applies to Every Server?
- Apply a CIS Benchmark or equivalent baseline.
- Patch the OS and server software promptly.
- Remove unused services and close unneeded ports.
- Use MFA and dedicated admin accounts for management.
- Send logs to a central system and keep them (180 days in India under CERT-In directions).
- Back up and test restores.
# Check which ports a server you manage is listening on
ss -tulpn
# Scan it from another host on the same network (with authorisation)
nmap -sV 10.0.0.20
NIST SP 800-123 is the general guide. Other roles worth learning include proxy servers, directory servers such as Active Directory domain controllers, and virtualisation hosts. Related: common security misconfigurations. WebAsha offers Linux and Windows server training.
Where Should Each Server Sit in the Network?
| Zone | Servers | Allowed inbound |
|---|---|---|
| DMZ (internet-facing) | Web servers, mail gateways, public DNS | Only the public service ports |
| Application zone | Application servers | From DMZ web servers only |
| Data zone | Database and file servers | From application servers and approved users only |
| Management zone | Jump hosts, monitoring | From admin workstations with MFA |
NIST SP 800-41 describes firewall placement and DMZ design, and the NSA and CISA Top Ten Misconfigurations advisory lists lack of segmentation as a common weakness, which is why separating these zones limits attacks.
References
Frequently Asked Questions
What's Your Reaction?
Like
0
Dislike
0
Love
0
Funny
0
Wow
0
Sad
0
Angry
0