You can configure a security policy when configuring Telnet or STelnet access to a device.
Run acl acl-number or acl ipv6 acl6-number
An ACL or ACL6 is created, and the ACL or ACL6 view is displayed.
The value of acl-number or acl6-number must be within the range from 2000 to 2999 (basic ACLs).
Run rule permit source source-address 0 or rule permit source source-ipv6-address 0
An ACL or ACL6 rule is configured to prohibit devices except the device with the address specified by source-address or source-ipv6-address from accessing the local device.
Run quit
Exit from the ACL or ACL6 view.
Run acl acl-number or acl ipv6 acl6-number
An ACL or ACL6 is created, and the ACL or ACL6 view is displayed.
The value of acl-number or acl6-number must be within the range from 2000 to 2999 (basic ACLs).
Run rule permit source source-address 0 or rule permit source source-ipv6-address 0
An ACL or ACL6 rule is configured to prohibit devices except the device with the address specified by source-address or source-ipv6-address from accessing the local device.
Run quit
Exit from the ACL or ACL6 view.
Run user-interface vty first-ui-number [ last-ui-number ]
The VTY user interface view is displayed.
Run acl [ ipv6 ] { acl-number | acl-name } inbound
ACL-based access control is configured for the VTY user interface.
Run acl acl-number or acl ipv6 acl6-number
An ACL or ACL6 is created, and the ACL or ACL6 view is displayed.
The value of acl-number or acl6-number must be within the range from 3000 to 3999 (advanced ACLs).
Configure an ACL or ACL6 rule to prohibit the local device from accessing other devices.
Run quit
Exit from the ACL or ACL6 view.
Run user-interface vty first-ui-number [ last-ui-number ]
The VTY user interface view is displayed.
Run acl [ ipv6 ] { acl-number | acl-name } outbound
ACL-based access control is configured for the VTY user interface.
Run the display acl { acl-number | name acl-name | all } command to check the ACL configuration.