Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Management ACL / VTY Protection

Direct 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.

When to use this

Use it when hardening a device so management is only possible from known networks.

First 30 seconds

1. show running-config | section line vty — access-class on all ranges?

2. show access-lists <name> — your management subnet permitted?

3. Test SSH from an allowed and a non-allowed host.

4. The denied attempt increments a deny counter.

5. Keep a console session open while changing it.

Operational verification

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

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Cisco IOS / IOS XE; check deployed release support.Cisco IOS / IOS XE
Applicability is projected only from persisted Topic profile and Command metadata.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCisco IOS / IOS XE; check deployed release support. · Cisco IOS / IOS XE
Key commandshow line
Scope / prerequisiteUse it when hardening a device so management is only possible from known networks.
Show · 2
What next?3 suggested next steps
Catalog command links2
Evidence0
On this pageJump to a specific section
Verification

Show Commands

Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Read-only Verification Verify boundary
show access-lists 10
show running-config | section line vty
show users

Compare the applied ACL, actual source and all line ranges. Counters can be shared by multiple uses of an ACL; correlate them with a controlled test.

Step 2 Failure Signatures Narrow the fault

All administrators blocked: inspect source address after NAT and implicit deny. Only some sessions blocked: inspect remaining VTY ranges. VRF-only failure: inspect VRF-specific behavior and return routing. IPv6 exposure: add the separately reviewed IPv6 control.

Command lookup Jump straight to Cisco syntax
Key points

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.

Key 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.
ReferenceWhat it is1 section · depth on demand
ReferenceHow it works1 section · depth on demand

Technical Mechanics

Inbound VTY ACLs evaluate the arriving source. Account for jump hosts, NAT and the real management ingress path. IPv4 policy does not automatically protect IPv6. Review separate IPv6 line controls on the deployed release. A VRF-aware source policy and a routing table are different objects.

ReferenceImportant terms & boundaries4 sections · depth on demand

Proof Boundaries

An ACL match proves neither identity nor command privilege. AAA owns AAA; ACL owns general ACL mechanics. HTTPS has its own source policy.

Common mistakes

  • Locking yourself out by applying the VTY ACL before allowing your own subnet.
  • Using ip access-group on VTY lines instead of access-class.
  • Forgetting IPv6 (ipv6 access-class).

In depth

A management ACL protects the VTY lines by permitting SSH sessions only from approved management networks; everything else is rejected before a login prompt appears. It is applied with access-class on the lines, not with ip access-group on interfaces.

ip access-list standard MGMT-HOSTS
 permit 10.0.100.0 0.0.0.255
 deny any log
line vty 0 15
 transport input ssh
 access-class MGMT-HOSTS in vrf-also

Documented example, not captured output.

Common mistakeEffect
Not applied to all VTY lines (0 4 vs 5 15)Some sessions bypass the ACL
Missing vrf-also with management VRFLegitimate admins denied
No out-of-band access before testingRisk of lock-out
ReferenceConfiguration & state1 section · depth on demand

Cisco Configuration

State-changing default-VRF IPv4 example; 192.0.2.0/24 is a documentation-only management subnet. Check that ACL 10 is unused or already has the intended content. Keep console recovery.

access-list 10 permit 192.0.2.0 0.0.0.255
line vty 0 4
 access-class 10 in
 transport input ssh

The implicit deny rejects other sources. Cover every VTY range. Older VRF deployments may require access-class 10 in vrf-also; newer per-VRF forms have different semantics and must not be mixed blindly. Follow the exact platform/release guide before selecting one.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical examples

Configuration & expected output

Concrete examples are shown only when the stored reference contains an actual configuration or output shape for this Topic.

Configuration example

Cisco IOS / IOS XE IOS XE 17.xRestrict VTY access to the management subnet.

Assumptions: Management hosts live in 10.99.0.0/24.

ip access-list standard MGMT-ONLY
 permit 10.99.0.0 0.0.0.255
 deny any log
!
line vty 0 15
 access-class MGMT-ONLY in
 transport input ssh

Expected output

Cisco IOS / IOS XE IOS XE 17.xshow ip access-lists MGMT-ONLY

Expected state: Permitted logins increment the permit line; attempts from elsewhere hit the deny line.

Standard IP access list MGMT-ONLY
    10 permit 10.99.0.0, wildcard bits 0.0.0.255 (42 matches)
    20 deny   any log (3 matches)
Apply the access-class to every VTY line (0 15 or 0 4 depending on platform); a line left without it is still open. Illustrative authored output: field layout matches the tool, values will differ in your environment.
Depth when you need it

Deep reference

Healthy vs suspicious evidence

Expected Output

Expected state: each intended VTY range has the reviewed access-class and SSH-only transport. An allowed source can authenticate with the intended privilege; an unauthorized source cannot establish management access.

Confirmation

Confirm action

Continue?