show firewall log
语法
show firewall log <detail> <extensive> <interface interface-name> <logical-system (logical-system-name | all)>
语法(EX 系列交换机)
show firewall log <detail> <interface interface-name>
描述
显示有关防火墙过滤器的日志信息。
选项
none | 显示有关防火墙过滤器的日志信息。 |
detail | (可选)显示详细信息。 |
extensive | (可选)显示日志操作捕获的数据包的十六进制转储。 |
interface interface-name | (可选)显示有关特定接口的日志信息。 |
logical-system (logical-system-name | all) | (可选)在所有逻辑系统或特定系统上执行此操作。 |
所需权限级别
视图
输出字段
表 1 列出了命令 show firewall log
的输出字段。输出字段按其出现的大致顺序列出。
字段名称 |
字段说明 |
---|---|
|
事件发生的时间。 |
|
|
|
过滤器操作:
|
|
|
|
数据包的协议名称: |
|
数据包的长度。 |
|
数据包的源地址。 |
|
数据包的目标地址和端口。 |
示例输出
显示防火墙日志
user@host>show firewall log Time Filter Action Interface Protocol Src Addr Dest Addr 13:10:12 pfe D rlsq0.902 ICMP 192.0.2.2 192.0.2.1 13:10:11 pfe D rlsq0.902 ICMP 192.0.2.2 192.0.2.1
显示防火墙日志详细信息
user@host> show firewall log detail Time of Log: 2004-10-13 10:37:17 PDT, Filter: f, Filter action: accept, Name of interface: fxp0.0Name of protocol: TCP, Packet Length: 50824, Source address: 203.0.113.108:829, Destination address: 192.168.70.66:513 Time of Log: 2004-10-13 10:37:17 PDT, Filter: f, Filter action: accept, Name of interface: fxp0.0 Name of protocol: TCP, Packet Length: 1020, Source address: 203.0.113.108:829, Destination address: 192.168.70.66:513 Time of Log: 2004-10-13 10:37:17 PDT, Filter: f, Filter action: accept, Name of interface: fxp0.0 Name of protocol: TCP, Packet Length: 49245, Source address: 203.0.113.108:829, Destination address: 192.168.70.66:513 Time of Log: 2004-10-13 10:37:17 PDT, Filter: f, Filter action: accept, Name of interface: fxp0.0 Name of protocol: TCP, Packet Length: 49245, Source address: 203.0.113.108:829, Destination address: 192.168.70.66:513 Time of Log: 2004-10-13 10:37:17 PDT, Filter: f, Filter action: accept, Name of interface: fxp0.0 Name of protocol: TCP, Packet Length: 49245, Source address: 203.0.113.108:829, Destination address: 192.168.70.66:513 Time of Log: 2004-10-13 10:37:17 PDT, Filter: f, Filter action: accept, Name of interface: fxp0.0 Name of protocol: TCP, Packet Length: 49245, Source address: 203.0.113.108:829, Destination address: 192.168.70.66:513 ....
显示防火墙日志广泛
user@host> show firewall log extensive Time of Log: 2016-01-17 22:16:21 PST, Filter: pfe, Filter action: accept, Name of interface: xe-0/0/1.0 Name of protocol: UDP, Packet Length: 98, Source address: 203.0.113.1, Destination address: 203.0.113.1 : 00-0F: 00 01 03 ee ee ff 00 01 - 09 22 55 ee 81 00 02 58 : 10-1F: 08 00 45 00 00 62 00 00 - 00 00 40 11 77 8a 01 00 : 20-2F: 00 01 02 00 00 01 1c 00 - 1c 00 00 4e 19 83 00 01 : 30-3F: 02 03 04 05 06 07 08 09 - 0a 0b 0c 0d 0e 0f 10 11 : 40-4F: 12 13 14 15 16 17 18 19 - 1a 1b 1c 1d 1e 1f 20 21 : 50-5F: 22 23 24 25 26 27 28 29 - 2a 2b 00 00 00 00 00 00 : 60-6F: 00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00 : 70-7F: 00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
发布信息
在 Junos OS 7.4 版之前引入的命令。
extensive
Junos OS 16.1 版中引入的选项。
logical-system
Junos OS 9.3 版中引入的选项。