telnet server acl

Function

The telnet server acl command configures the ACL to control the access of clients to the Telnet server.

The undo telnet server acl command cancels the configuration of the ACL.

By default, no ACL is configured.

Format

telnet server acl { acl4name | acl4num }

telnet ipv6 server acl { acl6name | acl6num }

undo telnet server acl

undo telnet ipv6 server acl

Parameters

Parameter Description Value
acl4name

Specifies the ACL4 name.

The value is a string of 1 to 64 case-sensitive characters without spaces. The value must start with a letter (a to z or A to Z, case sensitive).

acl4num

Specifies the IPv4 ACL number.

ACL number is an integer data type. The basic acl number value ranges from 2000 to 2999, the advanced acl number value ranges from 3000 to 3999.

ipv6

Filter IPv6 addresses.

-

acl6name

Specifies the ACL6 name.

The value is a string of 1 to 64 case-sensitive characters without spaces. The value must start with a letter (a to z or A to Z, case sensitive).

acl6num

Specifies the IPv6 ACL number.

ACL number is an integer data type. The basic acl number value ranges from 2000 to 2999, the advanced acl number value ranges from 3000 to 3999.

Views

System view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
telnet-server write

Usage Guidelines

Usage Scenario

When a device serves as Telnet server, you can configure the ACL on the device to control the login of the clients to the device.

  • You can control client access based on the source address using a basic ACL or based on the source and destination addresses using an advanced ACL.
  • TELNETS only supports ACL matching based on the following parameters: source IP address, destination IP address, source port number, destination port number, and VPN.

Precautions

If no rule is configured, the incoming and outgoing calls are not restricted after the command telnet server acl is run.

The command telnet server acl takes effect for ipv4 function.

Example

# Set ACL rule 2000 to Telnet server.
<HUAWEI> system-view
[~HUAWEI] acl 2000
[*HUAWEI-acl4-basic-2000] quit
[*HUAWEI] telnet server acl 2000
# Set ACL6 rule 2000 to Telnet server.
<HUAWEI> system-view
[~HUAWEI] acl ipv6 name test
[*HUAWEI-acl6-advance-test] quit
[*HUAWEI] telnet ipv6 server acl test
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >