1.3 防火墙通过TELNET登录设备

防火墙通过TELNET登录设备

在这里插入图片描述

需求:使远程管理员能够通过telnet方式登录到设备上进行管理

序号任务任务说明备注
1物理连接
2登录设备
3配置设备telnet设备默认不支持telnet功能,必须开启telnet功能,以及用于远程登录设备的账号密码等。重点
4测试telnet功能如图

配置设备telnet

  • 1.开启telnet
  • 2.配置登录接口
    • 2.1配置接口的IP地址用于登录
    • 2.2配置接口的访问控制功能(可选,防火墙业务口需要此步骤)
    • 2.3配置接口加入安全区域(可选,防火墙业务口需要此步骤)
  • 3.配置管理员信息
    • 3.1配置VTY管理员认证方式为AAA
    • 3.2配置telnet管理员
    • 3.3为管理员绑定角色(可选,仅防火墙支持)
  • 4.登录设备
步骤对应代码
2.配置登录接口2.1配置接口的IP地址用于登录
2.2配置接口的访问控制功能(可选,防火墙业务口需要此步骤)
2.3配置接口加入安全区域(可选,防火墙业务口需要此步骤)
2.1配置接口的IP地址用于登录<USG6000V1>system-view
Enter system view, return user view with Ctrl+Z.

[USG6000V1]telnet server enable
Info: The Telnet server has been enabled.

[USG6000V1]interface g0/0/0

[USG6000V1-GigabitEthernet0/0/0]ip address 192.168.100.100 24
Error: The address already exists.
2.2配置接口的访问控制功能(可选,防火墙业务口需要此步骤)[USG6000V1-GigabitEthernet0/0/0]service-manage enable

[USG6000V1-GigabitEthernet0/0/0]service-manage telnet permit

[USG6000V1-GigabitEthernet0/0/0]service-manage https permit

[USG6000V1-GigabitEthernet0/0/0]quit
2.3配置接口加入安全区域(可选,防火墙业务口需要此步骤)[USG6000V1]firewall zone trust

[USG6000V1-zone-trust]add interface GigabitEthernet 0/0/0
Error: The interface has been added to trust security zone.

[USG6000V1-zone-trust]quit
3.配置管理员信息3.1配置VTY管理员认证方式为AAA
3.2配置telnet管理员
3.3为管理员绑定角色(可选,仅防火墙支持)
3.1配置VTY管理员认证方式为AAA[USG6000V1]user-interface vty 0 4

[USG6000V1-ui-vty0-4]authentication-mode aaa
Warning: The level of the user-interface(s) will be the default level of AAA use
rs, please check whether it is correct.

[USG6000V1-ui-vty0-4]protocol inbound telnet

[USG6000V1-ui-vty0-4]user privilege level 3

[USG6000V1-ui-vty0-4]quit
3.2配置telnet管理员[USG6000V1]aaa

[USG6000V1-aaa]manager-user telnetuser

[USG6000V1-aaa-manager-user-telnetuser]password cipher Admin@1234
Info: You are advised to config on man-machine mode.

[USG6000V1-aaa-manager-user-telnetuser]service-type telnet
Warning: The user access modes include Telnet or FTP, so security risks exist.

[USG6000V1-aaa-manager-user-telnetuser]level 3
Warning: The user binds a role, it’s not allowed to change its level

[USG6000V1-aaa-manager-user-telnetuser]quit

3.3为管理员绑定角色(可选,仅防火墙支持)[USG6000V1-aaa]bind manager-user telnetuser role system-admin

[USG6000V1-aaa]quit
<USG6000V1>system-view 
Enter system view, return user view with Ctrl+Z.

[USG6000V1]telnet server enable 
Info: The Telnet server has been enabled.

[USG6000V1]interface g0/0/0
	
[USG6000V1-GigabitEthernet0/0/0]ip address 192.168.100.100 24
Error: The address already exists.

[USG6000V1-GigabitEthernet0/0/0]service-manage enable 

[USG6000V1-GigabitEthernet0/0/0]service-manage telnet permit 
	
[USG6000V1-GigabitEthernet0/0/0]service-manage https permit 

[USG6000V1-GigabitEthernet0/0/0]quit

[USG6000V1]firewall zone trust 

[USG6000V1-zone-trust]add interface GigabitEthernet 0/0/0
 Error: The interface has been added to trust security zone. 

[USG6000V1-zone-trust]quit

[USG6000V1]user-interface vty 0 4

[USG6000V1-ui-vty0-4]authentication-mode aaa
Warning: The level of the user-interface(s) will be the default level of AAA use
rs, please check whether it is correct.

[USG6000V1-ui-vty0-4]protocol inbound telnet 

[USG6000V1-ui-vty0-4]user privilege level 3

[USG6000V1-ui-vty0-4]quit

[USG6000V1]aaa

[USG6000V1-aaa]manager-user telnetuser

[USG6000V1-aaa-manager-user-telnetuser]password cipher Admin@1234
Info: You are advised to config on man-machine mode.

[USG6000V1-aaa-manager-user-telnetuser]service-type telnet 
Warning: The user access modes include Telnet or FTP, so security risks exist.

[USG6000V1-aaa-manager-user-telnetuser]level 3
 Warning: The user binds a role, it's not allowed to change its level

[USG6000V1-aaa-manager-user-telnetuser]quit

[USG6000V1-aaa]bind manager-user telnetuser role system-admin 

[USG6000V1-aaa]quit

[USG6000V1]quit

<USG6000V1>save
The current configuration will be written to hda1:/vrpcfg.cfg.
Are you sure to continue?[Y/N]Y
Now saving the current configuration to the slot 0.
Apr 28 2023 08:22:42 USG6000V1 %%01CFM/4/SAVE(s)[0]:The user chose Y when decidi
ng whether to save the configuration to the device.
Save the configuration successfully.

测试

在这里插入图片描述

在这里插入图片描述

1.3通过telnet登录设备拓扑(网络安全设备小白从零开始)

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

啊酒弟弟

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值