Pcornel
Networking · Security › Device Access & Management

Management ACL / VTY Protection

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

Back to the Topic

Answer

Management access protection limits who can reach the device's management plane: VTY ACLs for SSH, ACLs for HTTPS/SNMP/NETCONF, and a dedicated management VRF or interface.

Remember

Cover every management service, not just SSH: ip http access-class, SNMP community or group ACLs, NETCONF/RESTCONF. Allow at least two independent paths (jump host and console) before tightening.

First checks

  • show line vty 0 15 | include Access — inbound ACL per line.
  • show access-lists <name> — permit and deny counters.
  • show running-config | section line vty — access-class on every line range.
  • show users — current sessions and where they come from.

Commands

show line
Lists console, AUX and VTY lines with their state and usage counters.
show users
Lists the active console and VTY sessions: line, user, idle time and where they connect from.
ip access-group

Verify in this order

ACL applied on the right interface and direction → packet compared top-down → first matching entry decides → no match = implicit deny → counter increments on the matching entry

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

Confirmation

Confirm action

Continue?