最佳答案
您好,请知:
可以使用ACL限制。
以下是参考命令:
acl basic 2000
rule 0 permit source 192.168.1.1 0
quit
ssh server acl 2000
telnet server acl 2000
或
user-interface vty 0 4
acl 2000 inbound
quit
(0)
user-interface vty 0 4 acl 2000 inbound authentication-mode scheme protocol inbound ssh 这样配置了,但是dis log还是有很多ssh尝试登陆的,只是被拒绝了,这样大量ssh工具的时候,路由器的性能很受影响,怎么能完全让外网无法ssh尝试呢? %Apr 2 12:22:48:187 2022 MSR2600 SHELL/5/SHELL_LOGINFAIL: SSH user failed to log in from 45.125.65.31 on VTY0 due to IP restriction.. %Apr 2 12:27:37:238 2022 MSR2600 SHELL/5/SHELL_LOGINFAIL: SSH user failed to log in from 104.248.125.146 on VTY0 due to IP restriction.. %Apr 2 12:33:28:210 2022 MSR2600 SHELL/5/SHELL_LOGINFAIL: SSH user failed to log in from 179.43.167.74 on VTY0 due to IP restriction.. %Apr 2 12:49:05:996 2022 MSR2600 SHELL/5/SHELL_LOGINFAIL: SSH user failed to log in from 83.97.20.34 on VTY0 due to IP restriction.. %Apr 2 12:59:34:060 2022 MSR2600 SHELL/5/SHELL_LOGINFAIL: SSH user failed to log in from 112.132.249.164 on VTY0 due to IP restriction.. %Apr 2 13:06:40:700 2022 MSR2600 SHELL/5/SHELL_LOGINFAIL: SSH user failed to log in from 45.125.65.126 on VTY0 due to IP restriction.. %Apr 2 14:22:59:315 2022 MSR2600 SHELL/5/SHELL_LOGINFAIL: SSH user failed to log in from 164.92.210.62 on VTY0 due to IP restriction.. %Apr 2 14:35:42:154 2022 MSR2600 SHELL/5/SHELL_LOGINFAIL: SSH user failed to log in from 124.222.17.122 on VTY0 due to IP restriction.. %Apr 2 14:35:42:191 2022 MSR2600 SHELL/5/SHELL_LOGINFAIL: SSH user failed to log in from 124.222.17.122 on VTY0 due to IP restriction.. %Apr 2 14:41:21:460 2022 MSR2600 SHELL/5/SHELL_LOGINFAIL: SSH user failed to log in from 45.125.65.126 on VTY0 due to IP restriction..
user-interface vty 0 4
acl 2000 inbound
authentication-mode scheme
protocol inbound ssh
这样配置了,但是dis log还是有很多ssh尝试登陆的,只是被拒绝了,这样大量ssh工具的时候,路由器的性能很受影响,怎么能完全让外网无法ssh尝试呢?
%Apr 2 12:22:48:187 2022 MSR2600 SHELL/5/SHELL_LOGINFAIL: SSH user failed to log in from 45.125.65.31 on VTY0 due to IP restriction..
%Apr 2 12:27:37:238 2022 MSR2600 SHELL/5/SHELL_LOGINFAIL: SSH user failed to log in from 104.248.125.146 on VTY0 due to IP restriction..
%Apr 2 12:33:28:210 2022 MSR2600 SHELL/5/SHELL_LOGINFAIL: SSH user failed to log in from 179.43.167.74 on VTY0 due to IP restriction..
%Apr 2 12:49:05:996 2022 MSR2600 SHELL/5/SHELL_LOGINFAIL: SSH user failed to log in from 83.97.20.34 on VTY0 due to IP restriction..
%Apr 2 12:59:34:060 2022 MSR2600 SHELL/5/SHELL_LOGINFAIL: SSH user failed to log in from 112.132.249.164 on VTY0 due to IP restriction..
%Apr 2 13:06:40:700 2022 MSR2600 SHELL/5/SHELL_LOGINFAIL: SSH user failed to log in from 45.125.65.126 on VTY0 due to IP restriction..
%Apr 2 14:22:59:315 2022 MSR2600 SHELL/5/SHELL_LOGINFAIL: SSH user failed to log in from 164.92.210.62 on VTY0 due to IP restriction..
%Apr 2 14:35:42:154 2022 MSR2600 SHELL/5/SHELL_LOGINFAIL: SSH user failed to log in from 124.222.17.122 on VTY0 due to IP restriction..
%Apr 2 14:35:42:191 2022 MSR2600 SHELL/5/SHELL_LOGINFAIL: SSH user failed to log in from 124.222.17.122 on VTY0 due to IP restriction..
%Apr 2 14:41:21:460 2022 MSR2600 SHELL/5/SHELL_LOGINFAIL: SSH user failed to log in from 45.125.65.126 on VTY0 due to IP restriction..
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
user-interface vty 0 4 acl 2000 inbound authentication-mode scheme protocol inbound ssh 这样配置了,但是dis log还是有很多ssh尝试登陆的,只是被拒绝了,这样大量ssh工具的时候,路由器的性能很受影响,怎么能完全让外网无法ssh尝试呢? %Apr 2 12:22:48:187 2022 MSR2600 SHELL/5/SHELL_LOGINFAIL: SSH user failed to log in from 45.125.65.31 on VTY0 due to IP restriction.. %Apr 2 12:27:37:238 2022 MSR2600 SHELL/5/SHELL_LOGINFAIL: SSH user failed to log in from 104.248.125.146 on VTY0 due to IP restriction.. %Apr 2 12:33:28:210 2022 MSR2600 SHELL/5/SHELL_LOGINFAIL: SSH user failed to log in from 179.43.167.74 on VTY0 due to IP restriction.. %Apr 2 12:49:05:996 2022 MSR2600 SHELL/5/SHELL_LOGINFAIL: SSH user failed to log in from 83.97.20.34 on VTY0 due to IP restriction.. %Apr 2 12:59:34:060 2022 MSR2600 SHELL/5/SHELL_LOGINFAIL: SSH user failed to log in from 112.132.249.164 on VTY0 due to IP restriction.. %Apr 2 13:06:40:700 2022 MSR2600 SHELL/5/SHELL_LOGINFAIL: SSH user failed to log in from 45.125.65.126 on VTY0 due to IP restriction.. %Apr 2 14:22:59:315 2022 MSR2600 SHELL/5/SHELL_LOGINFAIL: SSH user failed to log in from 164.92.210.62 on VTY0 due to IP restriction.. %Apr 2 14:35:42:154 2022 MSR2600 SHELL/5/SHELL_LOGINFAIL: SSH user failed to log in from 124.222.17.122 on VTY0 due to IP restriction.. %Apr 2 14:35:42:191 2022 MSR2600 SHELL/5/SHELL_LOGINFAIL: SSH user failed to log in from 124.222.17.122 on VTY0 due to IP restriction.. %Apr 2 14:41:21:460 2022 MSR2600 SHELL/5/SHELL_LOGINFAIL: SSH user failed to log in from 45.125.65.126 on VTY0 due to IP restriction..