wireshark安装

来源:互联网 发布:jquery.cookie.js用法 编辑:程序博客网 时间:2024/05/29 03:29
安装
#yum install wireshark
#yum install wireshark-gnome

启动
#wireshark

使用
点菜单栏 Capture->Options
    选择监听接口 Interface ,用一般联网的接口如 eth0, em1等等,不要用 ipsec0
    填写过滤条件 Capture Filter,建议点进去新建一个条目,填上过滤规则,这样以后就不用再写了
    新建的规则主要写在 Filter string 里,我的是 host 192.168.1.128 and port 500
    其中 port 500 是 isakmp 的默认端口
    点击Start 开始抓包,之后运行的 ipsec auto --up net-to-net 就可以被监控到了