Pcornel
Networking · Security › Device Hardening

Disable Unused Device Services

Cheat sheet · https://pcornel.dk/topic.php?topic=1478

Back to the Topic

Answer

Disabling unused services reduces the attack surface: turn off the HTTP server, CDP or LLDP on untrusted ports, small servers, finger and other services the device does not need.

Remember

  • SSHv2 protects the session; VTY policy still controls who may connect and how users authenticate
  • Use a dedicated management VRF/interface where supported and restrict sources with ACL/firewall policy
  • Disable Telnet and unused HTTP services
  • Prefer named administrators, AAA, least privilege, timeouts and audit logging
  • Preserve an out-of-band recovery path before changing remote access.

First checks

  • show running-config | include service|ip http|cdp — services enabled
  • show control-plane host open-ports — listening ports

Commands

ip dhcp bootp ignore
show control-plane host open-ports
ip http server

Verify in this order

service inventory → disable unused → verify ports

Where it usually breaks

physical/link dependency → local object state → peer/control state → policy → forwarding/adjacency → end-to-end result

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=1478

Confirmation

Confirm action

Continue?