开源软件名称(OpenSource Name):Netis/packet-agent开源软件地址(OpenSource Url):https://github.com/Netis/packet-agent开源编程语言(OpenSource Language):C++ 99.5%开源软件介绍(OpenSource Introduction):English ∙ 简体中文 Netis Packet Agent 0.5.0What is Netis Packet Agent?Netis Packet Agent is an open source project to deal with such situation: it captures packets on Machine A but has to use them on Machine B. This case is very common when you try to monitor network traffic in the LAN but the infrastructure is incapable, for example
Also, this project aims at developing a suite of low cost but high efficiency tools to survive the challenge above.
With 3 utilities:
Getting StartedInstallationCentOS 6/7 and RedHat 7
yum install libpcap wget zeromq
wget https://github.com/Netis/packet-agent/releases/download/v0.5.0/netis-packet-agent-0.5.0.el6.x86_64.rpm
rpm -ivh netis-packet-agent-0.5.0.el6.x86_64.rpm SUSE 12
wget https://github.com/Netis/packet-agent/releases/download/v0.5.0/netis-packet-agent-0.5.0.el6.x86_64.rpm
rpm -ivh netis-packet-agent-0.5.0.el6.x86_64.rpm Ubuntu 18.04LTS
sudo apt-get install libpcap-dev wget
wget https://github.com/Netis/packet-agent/releases/download/v0.5.0/netis-packet-agent-0.5.0_amd64.deb
sudo dpkg -i netis-packet-agent-0.5.0_amd64.deb
whereis libpcap.so
cd /path/to/libpcap.so
ln -s libpcap.so.x.y.z libpcap.so.1 Remarks: If it encounter a library dependency error when install from rpm, you should install boost_1_59_0 or later. If this also can't work, you can build and run from source. Remarks: Now only support CentOS 6/7, RedHat 7, SUSE 12, Ubuntu 18.04 LTS. Windows 7/8/10 x64
Note: On Windows platform, you must use NIC's NT Device Name with format "\Device\NPF_{UUID}" as interface param. You can get it with following command:
Take last field(Transport Name) and replace "Tcpip_" with "NPF_" as follow, then you can get interface param of Windows.
Use example:
Engineering team contactsUsageRemarks: Make sure the firewall allows GRE packets to be sent to the target. https://lartc.org/howto/lartc.tunnel.gre.html provides a way to check firewall allows GRE packets to be sent. # Capture packet from NIC "eth0", encapsulate with GRE header and send to 172.16.1.201
pktminerg -i eth0 -r 172.16.1.201
# Specify cpu 1 for this program with high priority to avoid thread switch cost.
pktminerg -i eth0 -r 172.16.1.201 --cpu 1 -p
# compare 2 pcap files
pcapcompare --lpcap /path/to/left_file.pcap --rpcap /path/to/right_file.pcap
# Capture packet from NIC "eth0" and save them to gredump_output.pcap
gredump -i eth0 -o /path/to/gredump_output.pcap
# Capture packet from NIC "eth0", do not set DF flag
pktminerg -i eth0 -r 172.16.1.201 -M dont For more information on using these tools, please refer to this document. For docker usage, please refer to this document. Build from source.You can also clone source from Github and build Netis Packet Agent in local, then check"/path/to/packet-agent/bin" to find all binary.
Documentation / Useful linkContributingFork the project and send pull requests. We welcome pull requests from members of all open source community. LicenseCopyright (c) 2018 - 2020 Netis.
Contact info
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论