C114门户论坛百科APPEN| 举报 切换到宽版

亚星游戏官网

 找回密码
 注册

只需一步,快速开始

短信验证,便捷登录

搜索
查看: 5841|回复: 0

[IPV4/IPV6(NGN)] Junos SRX 抓包配置分享 [复制链接]

军衔等级:

亚星游戏官网-yaxin222  新兵

注册:2016-4-19
发表于 2018-1-4 14:01:44 |显示全部楼层
debug:跟踪防火墙对数据包的处理过程
SRX对应ScreenOS debug flow basic跟踪报文处理路径的命令:
set security flow traceoptions flag basic-datapath 开启SRX基本报文处理Debug
set security flow traceoptions file filename.log   将输出信息记录到指定文件中
set security flow traceoptions file filename.log  size <file-size> 设置该文件大小,缺省128k
set security flow traceoptions packet-filter filter1 destination-prefix 5.5.5.2 设置报文跟踪过滤器

run file show filename.log 查看该Log输出信息




捕获进出防火墙的数据包 开启抓包功能参数设置
edit forwarding-options
set packet-capture maximum-capture-size 500  //Specify in bytes the maximum size of each packet to capture in each file—for example, 500. The range is between 68 and 1500, and the default is 68 bytes.
set packet-capture file filename pcap-file   //Specify the target filename for the packet capture file—for example, pcap-file. For each physical interface, the interface name is automatically suffixed to the filename—for example, pcap-file.fe-0.0.1.
set packet-capture file files 100   // Specify the maximum number of files to capture—for example, 100. The range is between 2 and 10,000, and the default is 10 files. In the Files box, type 100

set packet-capture file size 1024  // Specify the maximum size of each file in bytes—for example, 1024. The range is between 1,024 and 104,857,600, and the default is 512,000 bytes. In the Size box, type 1024.

set packet-capture file world-readable  // Specify if all users have permission to read the packet capture files.
Configuring Packet Capture on an Interface
edit interfaces fe-0/0/1
set unit 0 family inet sampling input output
Configuring a Firewall Filter for Packet Capture
edit firewall
set firewall filter dest-all term dest-term from destination-address 192.168.1.1/32
set firewall filter dest-all term dest-term then sample accept
set interfaces fe-0/0/1 unit 0 family inet filter output dest-all
Disabling Packet Capture
edit forwarding-options
set packet-capture disable

举报本楼

您需要登录后才可以回帖 登录 | 注册 |

手机版|C114 ( 沪ICP备12002291号-1 )|联系大家 |网站地图  

GMT+8, 2024-11-16 07:50 , Processed in 0.107092 second(s), 15 queries , Gzip On.

Copyright © 1999-2023 C114 All Rights Reserved

Discuz Licensed

回顶部
XML 地图 | Sitemap 地图