system-view
password-control enable
# login-attempt 5:最多5次;exceed lock:永久锁定账号
password-control login-attempt 5 exceed lock
password-control login-attempt 5 lock-time 60
# lock-time 60 锁定60分钟,数值单位分钟
exceed lock/lock-time,仅统计失败次数,无阻断,测评不通过。network-admin:系统运维(配置网络、策略)security-audit:安全审计(仅查看日志、配置,不能修改)context-admin:管理员账号(业务、账号管理)# 创建三类分权账号
local-user admin-network class manage
password simple Admin@123456
authorization-attribute user-role network-admin
service-type ssh telnet web
local-user admin-audit class manage
password simple Audit@123456
authorization-attribute user-role security-audit
service-type ssh telnet web
local-user admin-context class manage
password simple Context@123456
authorization-attribute user-role context-admin
service-type ssh telnet web
# 开启密码管控
password-control enable
# 密码最小长度8位
password-control length 8
# 密码4种字符(大小写+数字+特殊符号)
password-control composition type-number 4 type-length 1
# 密码90天过期
password-control aging 90
# 过期前7天提醒修改
password-control aging warn 7
# 禁止使用历史4次旧密码
password-control history 4
# 登录会话超时10分钟无操作自动下线
user-interface vty 0 15
idle-timeout 10 0
display password-control
display local-user verbose
system-view
# 开启日志自动老化清理
info-center logfile aging enable
# 日志文件最长保存180天(单位天)
info-center logfile lifespan 180
# 单日志文件最大2048MB,防止占满磁盘
info-center logfile size-limit 2048
# 安全/流量/NAT/威胁日志统一留存180天
info-center flow-log save-duration 180
info-center security-policy-log save-duration 180
info-center nat-log save-duration 180
info-center threat-log save-duration 180
# 通用日志最短保存180*24=4320小时
info-center syslog min-age 4320
# 开启信息中心
info-center enable
# 输出日志到远端审计服务器
info-center loghost source Vlan-interface 1
info-center loghost 192.168.1.100 facility local7
# 开启安全审计独立日志文件
info-center security-logfile enable
info-center security-logfile lifespan 180
display info-center logfile summary
display info-center
system-view
# ==========1、三权分立账号==========
local-user net-admin class manage
password simple Net@Pass123
authorization-attribute user-role network-admin
service-type ssh web
local-user audit-admin class manage
password simple Audit@Pass123
authorization-attribute user-role security-audit
service-type ssh web
local-user ctx-admin class manage
password simple Ctx@Pass123
authorization-attribute user-role context-admin
service-type ssh web
# ==========2、登录失败5次永久锁定(测评最优)==========
password-control enable
password-control login-attempt 5 exceed lock
password-control length 8
password-control composition type-number 4 type-length 1
password-control aging 90
password-control aging warn 7
password-control history 4
user-interface vty 0 15
idle-timeout 10 0
# ==========3、日志留存180天==========
info-center enable
info-center logfile aging enable
info-center logfile lifespan 180
info-center logfile size-limit 2048
info-center flow-log save-duration 180
info-center security-policy-log save-duration 180
info-center nat-log save-duration 180
info-center threat-log save-duration 180
info-center syslog min-age 4320
# 远端日志服务器(替换为实际审计IP)
info-center loghost 192.168.1.100
password-control模块配置,Web 无对应可视化下拉框,配置命令后测评人员通过display password-control核验。lock-time 1440(锁定 24 小时),测评时切换永久锁定。display info-center logfile summary出示给测评人员。
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论