赞
踩
- Username:admin
- Password:
- The password needs to be changed. Change now? [Y/N]: y
- Please enter old password:
- Please enter new password:
- Please confirm new password:
-
- Info: Your password has been changed. Save the change to survive a reboot.
- *************************************************************************
- * Copyright (C) 2014-2018 Huawei Technologies Co., Ltd. *
- * All rights reserved. *
- * Without the owner's prior written consent, *
- * no decompiling or reverse-engineering shall be allowed. *
- *************************************************************************
- <USG6000V1>sys
- Enter system view, return user view with Ctrl+Z.
- [USG6000V1]un in en
- Info: Saving log files...
- Info: Information center is disabled.
- [USG6000V1]sysname FW
- [FW]int g0/0/0
- [FW-GigabitEthernet0/0/0]ip add 192.168.70.10 24 //进入g口,配置IP地址
- [FW-GigabitEthernet0/0/0]service-manage enable //配置接口管理模式
- [FW-GigabitEthernet0/0/0]service-manage telnet permit //允许telnet服务
- [FW-GigabitEthernet0/0/0]un sh //激活接口
- Info: Interface GigabitEthernet0/0/0 is not shutdown.
- [FW-GigabitEthernet0/0/0]q
- [FW]telnet server enable //开启telnet服务
- Warning: Telnet is not a secure protocol, and it is recommended to use Stelnet.
- [FW]firewall zone trust //进入防火墙的trust区域
- [FW-zone-trust]dis this //确定g口,添加进入trust区域
- 2020-02-11 03:11:23.790
- #
- firewall zone trust
- set priority 85
- add interface GigabitEthernet0/0/0
- #
- return
- [FW-zone-trust]q
- [FW]security-policy //安全策略配置
- [FW-policy-security]rule name allow_telnet //取名规则,命名为allow_telnet
- [FW-policy-security-rule-allow_telnet]source-zone trust //来自trust区域
- [FW-policy-security-rule-allow_telnet]destination-zone local //去local区域
- [FW-policy-security-rule-allow_telnet]action permit //动作是允许放通
- [FW-policy-security-rule-allow_telnet]q
- [FW-policy-security]q
- [FW]user-interface vty 0 4 //进入配置认证模式
- [FW-ui-vty0-4]authentication-mode aaa //认证模式为aaa
- Warning: The level of the user-interface(s) will be the default level of AAA use
- rs, please check whether it is correct.
- [FW-ui-vty0-4]protocol inbound telnet //允许telnet连接虚拟终端
- [FW-ui-vty0-4]q
- [FW]aaa //进入AAA模式
- [FW-aaa]manager-user demo //配置管理用户名为demo
- [FW-aaa-manager-user-demo]password cipher bdqn@123 //设置密码
- Info: You are advised to config on man-machine mode.
- [FW-aaa-manager-user-demo]service-type telnet //服务类型是telnet
- Warning: The user access modes include Telnet or FTP, so security risks exist.
- [FW-aaa-manager-user-demo]level 3 //用户权限级别是3
- [FW-aaa-manager-user-demo]q
- [FW-aaa]
- <FW>sys
- Enter system view, return user view with Ctrl+Z.
- [FW]int g0/0/0
- [FW-GigabitEthernet0/0/0]service-manage http permit //允许http服务
- [FW-GigabitEthernet0/0/0]service-manage https permit //允许https服务
- [FW-GigabitEthernet0/0/0]q
- [FW]aaa //进入AAA模式
- [FW-aaa]manager-user demo
- [FW-aaa-manager-user-demo]service-type web //服务类型web
- [FW]int g0/0/0
- [FW-GigabitEthernet0/0/0]service-manage ssh permit //ssh流量放通
- [FW-GigabitEthernet0/0/0]q
- [FW]rsa local-key-pair create //生成ssh密钥
- The key name will be: FW_Host
- The range of public key size is (2048 ~ 2048).
- NOTES: If the key modulus is greater than 512,
- it will take a few minutes.
- Input the bits in the modulus[default = 2048]:
- Generating keys...
- ...+++++
- ........................++
- ....++++
- ...........++
-
- [FW]aaa
- [FW-aaa]manager-user demo
- [FW-aaa-manager-user-demo]service-type ssh //服务类型是ssh
- [FW-aaa-manager-user-demo]q
- [FW-aaa]q
- [FW]stelnet server enable
- Info: Succeeded in starting the Stelnet server.
- [FW]user-interface vty 0 4 //进入配置认证模式
- [FW-ui-vty0-4]protocol inbound ssh //允许ssh连接虚拟终端
- [FW-ui-vty0-4]q
- [FW]
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。