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