Skip to main content

Network Hardening

Network hardening is about controlling what traffic flows in, out, and through your environment and making sure that when something malicious does get in, it can’t move freely. A lot of breaches that look sophisticated in hindsight were actually enabled by basic network misconfigurations: flat networks with no segmentation, exposed management interfaces, cleartext protocols still running, firewall rules nobody’s reviewed in years. This page covers the core principles and practical steps for hardening networks at both the perimeter and internally.

Core Principles

Before getting into specifics, these are the ideas everything else builds on: Least privilege for network traffic - traffic should only be allowed if there’s an explicit business reason for it. “Allow all outbound” is not a default you want. Defense in depth - don’t rely on a single control. Layer your defenses: perimeter firewall, internal segmentation, host-based firewall, IDS/IPS. Visibility first - you can’t defend what you can’t see. Logging and monitoring is part of network hardening, not an afterthought. Assume breach - design your network assuming an attacker will eventually get inside the perimeter. Segmentation and east-west traffic controls limit how far they can go.

Network Segmentation

A flat network where every device can talk to every other device is an attacker’s dream. Segmentation limits lateral movement by controlling which systems can communicate with which.

VLANs

VLANs (Virtual Local Area Networks) are the standard way to segment at Layer 2:
Key rules:
  • Never use VLAN 1 as your native/default VLAN - it’s the default on all switches and a known attack vector (VLAN hopping)
  • Inter-VLAN routing should go through a firewall, not just a router, so you can apply access control
  • Strictly segregate management traffic - your management VLAN should not be reachable from user VLANs

Zero Trust Network Architecture

The modern approach moves beyond perimeter-based thinking:
  • Never trust, always verify - even internal traffic
  • Every access request is authenticated and authorized, regardless of network location
  • Microsegmentation at the workload level, not just VLAN level
  • Works well alongside tools like software-defined perimeters and identity-aware proxies

Firewall Hardening

Rules Principles

Perimeter Firewall

For the external-facing firewall, the questions to answer for every allowed service:
  • Does this service need to be internet-facing, or can it be VPN-only?
  • Is access restricted by source IP where possible?
  • Is the service patched and actively maintained?
  • Is TLS enforced?
  • Is there rate limiting or DDoS protection in front of it?

Internal Firewall / East-West Controls

Most organizations focus on north-south traffic (in/out of the network) but ignore east-west (internal traffic). This is exactly how ransomware and APTs spread:
  • Deploy internal firewalls between segments
  • Apply ACLs on inter-VLAN routing
  • Use host-based firewalls as a second layer (Windows Firewall, UFW)
  • Consider a software-defined perimeter or microsegmentation solution for cloud/hybrid environments

Disable Insecure Protocols

Switch/Router Level

On Cisco IOS (adapt for other platforms):

Protocol-Level Decisions

DNS Hardening

DNS is critical infrastructure and a common attack vector - DNS tunneling, hijacking, poisoning.
For enterprise environments:
  • Use DNS filtering services (Cisco Umbrella, Cloudflare Gateway, NextDNS) to block malicious domains
  • Implement DNS over HTTPS (DoH) or DNS over TLS (DoT) to prevent DNS eavesdropping
  • Monitor DNS query logs - unusual patterns (high-entropy domains, uncommon TLDs, large TXT records) can indicate C2 or exfiltration
  • Restrict which systems can make external DNS queries - route everything through internal resolvers

Wireless Network Hardening

Authentication

  • WPA3 Enterprise is the current gold standard for corporate wireless
  • WPA2 Enterprise (802.1X) with EAP-TLS (certificate-based auth) is acceptable if WPA3 isn’t available
  • Never use WPA2-PSK (pre-shared key) for corporate networks - a single leaked key compromises everything
  • PEAP with MSCHAPv2 is common but has known weaknesses - prefer EAP-TLS

Network Design

Rogue AP Detection

Monitor for unauthorized wireless access points:
  • Enable Wireless Intrusion Prevention (WIPS) on your wireless infrastructure if available
  • Tools like Kismet or airodump-ng can detect rogue APs during assessments
  • Most enterprise wireless controllers (Cisco, Aruba, Ubiquiti Enterprise) have rogue AP detection built in

SNMP Hardening

SNMP (Simple Network Management Protocol) is used for monitoring network devices - and frequently misconfigured.

Network Access Control (NAC)

NAC ensures that only authorized, compliant devices can connect to your network:
  • 802.1X - Port-based authentication standard. Requires devices to authenticate before getting network access.
  • Cisco ISE - Enterprise NAC platform with rich policy capabilities
  • Aruba ClearPass - Another widely deployed NAC solution
  • PacketFence - Open-source NAC option
Typical enforcement policy:
  • Compliant corporate device + valid certificate = full corporate network access
  • Personal/unknown device = guest VLAN only
  • Quarantine VLAN for non-compliant devices (missing patches, AV not running, etc.)

Network Monitoring and IDS/IPS

Intrusion Detection / Prevention

NetFlow / Traffic Analysis

NetFlow (or IPFIX/sFlow) provides metadata about network conversations without full packet capture - efficient for large environments:
Collectors: ntopng, Elastiflow, Scrutinizer, Kentik

Packet Capture Points

Strategic TAP/SPAN points for full packet capture:
  • Internet perimeter (ingress/egress)
  • DMZ boundary
  • Key internal segments (server VLAN, DC traffic)
  • Wireless controllers (if possible)

Management Network (OOB)

Your network management infrastructure (switches, routers, firewalls, servers) should be on a separate out-of-band (OOB) management network:
Dedicated jump hosts (bastion hosts) provide an audit point for all management access:
  • All admin sessions go through the jump host
  • Sessions are logged and optionally recorded
  • MFA required at the jump host
  • Jump host itself is heavily hardened and monitored

DDoS Mitigation

For internet-facing services:
  • Upstream scrubbing - Most ISPs offer DDoS scrubbing services at the edge, before traffic reaches your network
  • CDN with DDoS protection - Cloudflare, Akamai, AWS Shield can absorb volumetric attacks
  • Rate limiting - Configure at the firewall, load balancer, and application level
  • BGP blackholing - Work with your ISP to null-route attack traffic upstream
  • Anycast routing - Distributes traffic across multiple points, reducing impact of volumetric attacks

Useful Tools

Quick Win Checklist

  • Default deny on all firewalls - inbound and internal
  • Segment your network - at minimum: servers, workstations, guests, management
  • Disable Telnet everywhere - SSH only
  • Disable SNMPv1/v2c - migrate to SNMPv3
  • Disable SMBv1 and LLMNR across the environment
  • Change default credentials on all network devices
  • Put management interfaces on a dedicated VLAN
  • Enable logging on all network devices and forward to a central SIEM
  • Run Nmap against your own perimeter - know what attackers see
  • Review firewall rules - remove anything that doesn’t have a documented justification

Reference


Network hardening is largely about discipline - maintaining consistent standards across a fleet of devices that changes constantly, enforcing rules that create friction, and keeping visibility over what’s actually happening on the wire.