Tools for distributed pcap recording (osmo-pcap-server, osmo-pcap-client)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Pau Espin a55253f438 client: Add 'wqueue max-length <0-4294967295>' VTY command 1 month ago
contrib Bump version: → 0.2.1 6 months ago
debian Bump version: → 0.3.0 4 months ago
doc server: Add vty command file-permission-mask 4 months ago
include client: Add 'wqueue max-length <0-4294967295>' VTY command 1 month ago
src client: Add 'wqueue max-length <0-4294967295>' VTY command 1 month ago
tests tests/ Fix "./configure && make clean && make" 3 years ago
.gitignore manuals: generate VTY reference for osmo-pcap-{client,server} 1 year ago
.gitreview Add gitreview config 5 years ago
.travis.yml client: Initial support for TLS in the client 6 years ago
AUTHORS osmo-pcap: Start with the autoconf/automake skeleton for this project 11 years ago
COPYING osmo-pcap: Start with the autoconf/automake skeleton for this project 11 years ago EXTRA_DIST: debian, contrib/* 2 years ago fix typo 10 months ago
TLS_TODO tls: Add initial ideas about TLS in the client/server 6 years ago
TODO misc: Update the todo with an obvious thing to do 6 years ago Revert " don't depend on libosmogb." 5 months ago
git-version-gen misc: Fix the version determination of git-version-gen 10 years ago Change default ports of client, server 9 months ago

osmo-pcap distributed network capture

osmo-pcap has been created to collect network traces at different nodes but store them centrally at a dedicated node for further analysis. This might be needed for auditing, resolving conflicts, post processing or debugging a distributed system.

The system consists out of the osmo-pcap-client to capture traffic at a host and osmo-pcap-server to receive the traffic, store and rotate the traffic at a centralized server. There is a shell script to compress and expire old traces.


The osmo-pcap-client is using libpcap and has a built-in detector for the GPRS-NS/BSSGP protocol to exclude user traffic. The client is known to work on 32/64 bit systems. It can be configured through the VTY and the minimal config includes the interface to monitor, the pcap filter to use and the server to send it to.


The osmo-pcap-server will listen for new TCP connections and then will receive the data from the client if it is coming from a known/good source IPv4/port. The server is configured to write one file per client and to change/rotate the file when the link encapsulation is changing. It can be configured to rotate the file a given time interval and/or if the filesize is over a threshold.

The osmo-pcap-server comes with a shell script to rotate and compress old traces. Currently the configuration parameters (age or amount based) need to be tuned in the script itself.

Installation and Configuration

There are Debian, Ubuntu, Raspbian packages available via the excellent openSUSE Build Service.

Please see the contrib/osmo-pcap-server.cfg and contrib/osmo-pcap-client.cfg file in the repository

Running tests

In order to run all tests, do the following:

$ ./configure --enable-external-tests $ make -j5 $ sudo setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' src/osmo-pcap-client $ make check


  • Add non-blocking TLS (probably GNUtls) support between client and server.
  • Improve the clean-up script, maybe re-write in python with exteral configuration.
  • Add hooks to the server to have an application receive all packages

Author and License

osmo-pcap has been created by Holger Hans Peter Freyther ( and is licensed as AGPLv3+. The author appreciates failure or success reports of using the software.