ASA防火墙之日志管理

比眉伴天荒 2021-11-10 11:14 466阅读 0赞

对于任何防火墙产品来说,最重要的功能之一就是对时间进行日志记录,ASA使用同步日志来记录在防火墙上发生的所有时间。

日志信息的安全级别分为八个等级,如下所示:

ASA防火墙之日志管理

配置日志:

日志信息可以输出到log buffer(日志缓冲区)、ASDM和日志服务器。

在配置日志前,一般需要先配置时区和时间,然后分别配置log buffer、ASDM和日志服务器,具体如下:

  1. ciscoasa(config)# clock timezone beijing 8 #beijing用来指定所在时区的名称,
  2. 8是指相对于国际标准时间的偏移量,这个值的取值范围为-23~+23
  3. ciscoasa(config)# clock set 13:12:00 30 april 2019 #配置时间,
  4. 顺序依次为:小时、分钟、秒、日、月、年。

配置log buffer,命令如下:

  1. ciscoasa(config)# logging enable
  2. ciscoasa(config)# logging buffered informational #配置informational级别的日志

log buffer的默认大小是4KB。

查看log buffer的命令如下:
ciscoasa(config)# show logging

清除log buffer的命令如下:

ciscoasa(config)# clear logging buffer

配置ASDM日志,命令如下:

  1. ciscoasa(config)# logging enable
  2. ciscoasa(config)# logging asdm informational

清除ASDM log buffer的命令如下:

ciscoasa(config)# clear logging asdm

配置日志服务器:

目前有很多日志服务器软件,推荐使用基于web的防火墙日志分析软件:firewall analyzer 6,它支持Windows和Linux平台。

  1. ciscoasa(config)# logging enable
  2. ciscoasa(config)# logging timestamp
  3. ciscoasa(config)# logging trap informational
  4. ciscoasa(config)# logging host inside 192.168.1.1

发表评论

表情:
评论列表 (有 0 条评论,466人围观)

还没有评论,来说两句吧...

相关阅读

    相关 ASA防火墙日志管理

    对于任何防火墙产品来说,最重要的功能之一就是对时间进行日志记录,ASA使用同步日志来记录在防火墙上发生的所有时间。 日志信息的安全级别分为八个等级,如下所示: ![ASA防