All Projects → Netis → Packet Agent

Netis / Packet Agent

Licence: bsd-3-clause
A toolset for network packet capture in Cloud/Kubernetes and Virtualized environment.

Projects that are alternatives of or similar to Packet Agent

Pcapxray
❄️ PcapXray - A Network Forensics Tool - To visualize a Packet Capture offline as a Network Diagram including device identification, highlight important communication and file extraction
Stars: ✭ 1,096 (+161.58%)
Mutual labels:  network, pcap, traffic
youtube-or-pornhub
Service identification on ciphered traffic.
Stars: ✭ 26 (-93.79%)
Mutual labels:  pcap, traffic, capture
Net2pcap
Net2PCAP is a simple network-to-pcap capture file for Linux. Its goal is to be as simple as possible to be used in hostile environments
Stars: ✭ 36 (-91.41%)
Mutual labels:  network, pcap
Netcap
A framework for secure and scalable network traffic analysis - https://netcap.io
Stars: ✭ 1,519 (+262.53%)
Mutual labels:  network, traffic
Libtins
High-level, multiplatform C++ network packet sniffing and crafting library.
Stars: ✭ 1,609 (+284.01%)
Mutual labels:  network, pcap
Sniffglue
Secure multithreaded packet sniffer
Stars: ✭ 651 (+55.37%)
Mutual labels:  network, pcap
Phpnetmap
Web application for ethernet network mapping. PHP Software for network device monitoring with SNMP v(1/2c/3) protocol.
Stars: ✭ 20 (-95.23%)
Mutual labels:  network, traffic
Scapy
Scapy: the Python-based interactive packet manipulation program & library. Supports Python 2 & Python 3.
Stars: ✭ 6,932 (+1554.42%)
Mutual labels:  network, pcap
Pypacker
📦 The fastest and simplest packet manipulation lib for Python
Stars: ✭ 216 (-48.45%)
Mutual labels:  network, pcap
Captagent
100% Open-Source Packet Capture Agent for HEP
Stars: ✭ 116 (-72.32%)
Mutual labels:  capture, pcap
Zserver4d
ZServer4D 是一套从商业项目剥离而出的云服务器中间件,可以承载百万级的分布式负载服务,并且支持IoT及内网穿透
Stars: ✭ 199 (-52.51%)
Mutual labels:  cloud, network
Tcpreplay
Pcap editing and replay tools for *NIX and Windows - Users please download source from
Stars: ✭ 745 (+77.8%)
Mutual labels:  pcap, traffic
Daggy
Daggy - Data Aggregation Utility. Open source, free, cross-platform, server-less, useful utility for remote or local data aggregation and streaming
Stars: ✭ 91 (-78.28%)
Mutual labels:  network, pcap
Joincap
Merge multiple pcap files together, gracefully.
Stars: ✭ 159 (-62.05%)
Mutual labels:  network, pcap
website-fingerprinting
Deanonymizing Tor or VPN users with website fingerprinting and machine learning.
Stars: ✭ 59 (-85.92%)
Mutual labels:  traffic, capture
sniffer
🤒 A modern alternative network traffic sniffer.
Stars: ✭ 428 (+2.15%)
Mutual labels:  pcap, traffic
Bagel
a little native network debugging tool for iOS
Stars: ✭ 4,005 (+855.85%)
Mutual labels:  network
2020
2020 😀😁😀😁😀 秋招笔试面试合集,以及2019届公司真题模拟题集 & 附上自己的后端指南,💻🎓包括(C/C++基础、数据结构、算法、操作系统💻、计算机网络、MySQL、shell(ps:sed、awk、grep))
Stars: ✭ 402 (-4.06%)
Mutual labels:  network
Sia Ui
A Graphical Frontend for Sia - https://sia.tech
Stars: ✭ 394 (-5.97%)
Mutual labels:  cloud
Howtheyaws
A curated collection of publicly available resources on how technology and tech-savvy organizations around the world use Amazon Web Services (AWS)
Stars: ✭ 389 (-7.16%)
Mutual labels:  cloud

English ∙ 简体中文

packet agent's title

Netis Packet Agent 0.3.6

Stable release Software License

What 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

  • There is neither TAP nor SPAN device in a physical environment.
  • The Virtual Switch Flow Table does not support SPAN function in a virtualization environment.

Also, this project aims at developing a suite of low cost but high efficiency tools to survive the challenge above.

  • pktminerg is the very first one, which makes you easily capture packets from an NIC interface, encapsulate them with GRE and send them to a remote machine for monitoring and analysis.

packet agent's pktminerg capture traffic flow via GRE/Cloud

With 3 utilities:

  • pcapcompare is a utility for comparing 2 different pcap files.
  • gredump is used for capturing GRE packet with filter, and save them to pcap file.
  • gredemo is a demo app which is used to read packet from a pcap file and send them all to remote NIC. This can be only used when built from source code.

Getting Started

Installation

CentOS 6/7 and RedHat 7

  1. Install libpcap and wget
yum install libpcap wget zeromq
  1. Download and install the RPM package. Find the latest package from Releases Page.
wget https://github.com/Netis/packet-agent/releases/download/v0.3.6/netis-packet-agent-0.3.6.el6.x86_64.rpm
rpm -ivh netis-packet-agent-0.3.6.el6.x86_64.rpm

SUSE 12

  1. Download and install the RPM package. Find the latest package from Releases Page.
wget https://github.com/Netis/packet-agent/releases/download/v0.3.6/netis-packet-agent-0.3.6.el6.x86_64.rpm
rpm -ivh netis-packet-agent-0.3.6.el6.x86_64.rpm

Ubuntu 18.04LTS

  1. Install libpcap and wget
sudo apt-get install libpcap-dev wget
  1. Download and install the DEB package. Find the latest package from Releases Page.
wget https://github.com/Netis/packet-agent/releases/download/v0.3.6/netis-packet-agent-0.3.6_amd64.deb
sudo dpkg -i netis-packet-agent-0.3.6_amd64.deb
  1. If libpcap.so.1 not found when running pktminerg, create softlink for libpcap.so.1 in suitable directory.
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

  1. Download and Install Winpcap of latest version.
  2. Download and Install Microsoft Visual C++ Redistributable for Visual Studio 2017 x64.
  3. Extract pktminerg and other utilities from zip, and run it in cmd in Administrator Mode.

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:

    C:\> getmac /fo csv /v 
    "Connection Name","Network Adapter","Physical Address","Transport Name" 
    "Ethernet","Intel(R) Ethernet Connection (4) I219-V","8C-16-45-6B-53-B5","\Device\Tcpip_{4C25EA92-09DF-4FD3-A8B3-1B68E57443E2}" 

Take last field(Transport Name) and replace "Tcpip_" with "NPF_" as follow, then you can get interface param of Windows.

    \Device\NPF_{4C25EA92-09DF-4FD3-A8B3-1B68E57443E2} 

Use example:

    C:\> pktminerg -i \Device\NPF_{4C25EA92-09DF-4FD3-A8B3-1B68E57443E2} -r 172.24.103.201 
    C:\> gredump -i \Device\NPF_{4C25EA92-09DF-4FD3-A8B3-1B68E57443E2} -o capture.pcap

Usage

Remarks: 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

packet agent's pktminerg : network capture use case

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.
For build precondition and steps, please refer to this document.

Documentation / Useful link

Contributing

Fork the project and send pull requests. We welcome pull requests from members of all open source community.

License

Copyright (c) 2018 - 2020 Netis.
The content of this repository bound by the following licenses:

Contact info


Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].