Security · 4 min read

Hardening the management plane: the ports to close first

The management plane is the attack surface most often overlooked in network hardening. Unlike data-plane traffic, which is constrained by routing and access lists, management traffic often traverses the network with minimal friction. Closing unnecessary management ports is one of the fastest and highest-impact hardening steps you can take. This guide identifies which ports to disable first and how to verify the changes.

Why management plane ports matter

Management ports provide administrative access to network devices. Telnet (port 23), HTTP (port 80), SNMP (ports 161-162), and unencrypted NTP (port 123) are common vectors for credential theft, man-in-the-middle attacks, and reconnaissance. Attackers who reach the management plane can reconfigure devices, redirect traffic, or establish persistence. Closing these ports eliminates entire attack paths.

The priority closure list

Disabling management services: Cisco IOS example

On Cisco IOS devices, management services are controlled via global configuration. Here is a typical hardening sequence:

! Disable Telnet
no line vty 0 4
line vty 0 4
 transport input ssh
 exec-timeout 15 0

! Disable HTTP
no ip http server
no ip http secure-server

! Disable SNMP v1 and v2c (if SNMPv3 is not required)
no snmp-server

! Disable TFTP
no tftp-server flash:*

! Disable unencrypted NTP
no ntp enable

! Enable SSH only
ip ssh version 2
ip ssh time-out 120
ip ssh authentication-retries 3

Verification and validation

After closing ports, verify that management access still functions over secure channels and that unnecessary services are truly disabled.

! Show active management services
show ip ssh
show line vty 0 4
show snmp
show ip http server status

! Verify SSH connectivity
ssh -v 2 -u admin 192.168.1.1

! Use netstat or equivalent to confirm ports are not listening
show tcp brief all

On Junos devices, use 'show system services' to verify which management protocols are active. On Arista, use 'show management api http-commands' to confirm HTTP management is disabled. Always document which ports you close and why, especially in multi-vendor environments.

Segmentation and out-of-band access

Closing ports is necessary but not sufficient. Combine port closure with network segmentation: place management traffic on a dedicated VLAN or out-of-band network, apply strict access control lists to permit only authorized management hosts, and use jump hosts or bastion servers to centralize administrative access. This defense-in-depth approach ensures that even if a port is accidentally left open, the network topology prevents unauthorized reach.

Port Reference
Free tool to identify and cross-reference network management ports across vendors and protocols.
Open →
Practise this on today’s Daily Ops Drill — a free network task every day.
Open the app →
Free tools for this
More from the blog
Writing least-privilege firewall rules without breaking the appRead →Subnetting on the Fortinet NSE4 exam: what to expectRead →