Got it

NE20E cannot login through MGMT interface with SSH after configure ACL to limit login source IP address

645 0 0 0 0

Hello everyone,

Today, I will introduce how to solve the problem that an ACL is configured on the NE20E to restrict the login source IP address, but the NE20E cannot log in to the NE20E through the MGMT interface in SSH mode.

Issue Description

NE20E cannot log in through the MGMT interface with SSH after configuring ACL to limit login source IP address.


Topu


#

ip vpn-instance mgt

 ipv4-family

#

#

acl name ssh advance

 rule 5 permit ip source 10.0.0.0 0.255.255.255

#

#

interface GigabitEthernet0/0/0

 speed auto

 duplex auto

  undo shutdown

 ip binding vpn-instance mgt

 ip address 192.168.1.1 255.255.255.0

#

#

user-interface vty 0 4

 acl ssh inbound

 authentication-mode aaa

 protocol inbound ssh

#

Alarm Information

[~IDN-DMZ-EDG-H6855-66-5U-JD-1]stelnet 192.168.1.1 -vpn-instance mgt

Trying 192.168.1.1 ...

Press CTRL + K to abort

Connected to 192.168.1.1 ...

The server is not authenticated. Continue to access it? [Y/N]: y

Save the server's public key? [Y/N]: n

Please input the username: test

Enter password:

Info: The connection was closed by the remote host.

 

Handling Process

1. Checking the source IP address, it is matched by ACL ssh.

2. Ping the destination IP address, it can access.

3. Checking the inbound interface, the inbound is from GigabitEthernet0/0/0.

4. Checking the ACL and find out it doesn't configure VPN instance mgt.

#

acl name ssh advance

 rule 5 permit ip source 10.0.0.0 0.255.255.255

#

Root Cause

The ACL use to limit login source doesn't configure VPN mgt

transparent.gif Solution

Add vpn-instance mgt when configure acl.

#

acl name ssh advance

 rule 5 permit ip vpn-instance mgt source 10.0.0.0 0.255.255.255

#

END


  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.
Information Protection Guide
Thanks for using Huawei Enterprise Support Community! We will help you learn how we collect, use, store and share your personal information and the rights you have in accordance with Privacy Policy and User Agreement.