info‑center source,只放行 IFNET(接口模块),其它模块(登录相关 SHELL、AAA 等)被 deny 或者设置级别过高,不会发给日志主机;本地 logbuffer 缓冲区不受该过滤,本地能看,远端收不到。<H3C>display info‑center
重点看:
info‑center source条目,是否对 loghost 方向 deny 部分模块,或者 level 设置过高。info‑center enable开启。<H3C>display logbuffer | include login
<H3C>display logbuffer | include SSH
这里能看到登录记录,代表设备已经生成该日志,问题是没有发给日志主机,不是没有产生日志。
目标:所有模块,级别 0‑6(emergencies ~ informational)全部允许输出到 loghost(syslog 服务器),接口告警、登录、操作日志全部外发。
system‑view
info‑center enable
# 配置日志主机IP(替换为你的网安设备IP,UDP514)
info‑center loghost x.x.x.x
# 关键:default规则,所有模块允许向loghost输出,级别informational(6)
info‑center source default loghost level informational
# 可选:单独放开AAA/SHELL模块(如果之前有deny的单独规则)
info‑center source AAA loghost level informational
info‑center source SHELL loghost level informational
# 可选,日志时间戳带年份,很多网安设备需要
info‑center timestamp loghost date
说明:level informational 代表输出 0‑6 级别;debugging (7) 调试日志不往外发,避免日志量巨大。
如果之前有旧的
info‑center source 模块名 loghost deny,需要删除旧的过滤配置。
info‑center loghost x.x.x.x port 514
info‑center loghost source Vlan‑interface 1
display info‑center statistics看 loghost 方向报文计数是否上涨。
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论