# Capture, Filter, Extract Traffic using Wireshark and PF_RING | ntop

> Last year we introduced our new nBPF library able to: 1. Convert a BPF filter to hardware rules for offloading traffic filtering to the network card, making i

[Blog](https://www.ntop.org/blog/)[PF\_RING](https://www.ntop.org/category/pf_ring/)

# Capture, Filter, Extract Traffic using Wireshark and PF\_RING

April 4, 20172 min read

Last year we introduced our new [nBPF](https://github.com/ntop/PF_RING/tree/dev/userland/nbpf) library able to:  
1\. Convert a BPF filter to hardware rules for offloading traffic filtering to the network card, making it possible to analyse traffic at 100G.  
2\. Accelerate traffic extraction from an indexed dump set produced by n2disk, our traffic recording application able to produce multiple PCAP files together with an index.

Along with that library we released a tool [n2if](https://github.com/ntop/PF_RING/tree/dev/tools), able to create virtual interfaces to be used in Wireshark for implementing [line-rate hardware packet filtering at 100G with Wireshark](https://www.ntop.org/introducing-nbpf-line-rate-hardware-packet-filtering-yes-wireshark-at-100g-is-possible/) and [filtering terabytes of pcaps with Wireshark](https://www.ntop.org/filtering-terabyte-of-pcaps-using-nbpf-and-wireshark/).

In the last months we have decided to take another step forward towards a better integration with Wireshark creating an extcap module. The [extcap](https://wiki.wireshark.org/Development/Extcap) interface is a plugin-based mechanism to allow external executables to be used as traffic source in case the capture interface is not a standard network interface directly recognised by Wireshark. This means that there is no more need for using external tools for creating special virtual interfaces, and linking Wireshark to our libpcap is no longer necessary, being everything based on plugins.

The [ntopdump extcap module](https://github.com/ntop/PF_RING/tree/dev/userland/wireshark/extcap) can be used to both open PF\_RING interfaces (i.e. even those that are not listed by ifconfig) and extract traffic from a n2disk dumpset in Wireshark with a few clicks inside the Wireshark GUI.

In order to get started with the ntopdump module, you need to compile and copy the module to the extcap path where Wireshark will look for the extcap plugins. This unless you are using the [PF\_RING binary package](http://packages.ntop.org), that contains it pre-packaged and that is installed in the directory where Wireshark will search it for.

cd PF\_RING/userland/wireshark/extcap/
make
cp ntopdump /usr/lib/x86\_64-linux-gnu/wireshark/extcap/

In the example above the extcap folder is /usr/lib/x86\_64-linux-gnu/wireshark/extcap/, if you install Wireshark from sources it will probably be /usr/local/lib/wireshark/extcap/. However you  
can read the actual extcap folder from the Wireshark menu:

“Help” -> “About Wireshark” -> “Folders” -> “Extcap path”

At this point you are ready to start Wireshark and start using the ntopdump module. Once you open Wireshark, you will see two additional interfaces, “PF\_RING interface” and “n2disk timeline”. Before running the capture, please configure the interface you want to use by clicking on the “configuration” icon of the corresponding interface.

We will present this and other ntop technologies usable in Wireshark at the upcoming [Sharkfest ’17 US in Pittsburg](https://sharkfest.wireshark.org) where we will organise a [ntop meetup](https://www.eventbrite.it/e/ntop-users-group-meeting-and-tutorial-registration-32974284974) open to all of our users willing to hear about the latest things we have developed and future roadmap items.

## Keep reading

centoJan 25, 2026

### [nProbe Cento at Scale: Flow Offload Acceleration on Napatech](https://www.ntop.org/nprobe-cento-at-scale-flow-offload-acceleration-on-napatech/)

High-speed networks continue to push the limits of software-based monitoring and security applications. As link speeds grow and traffic patterns become more complex, efficiently analyzing packets while maintaining per-flow state, for updating…

AnnounceApr 28, 2025

### [Released PF\_RING 9.0.0: Fully Fledged Hardware Flow Tracking](https://www.ntop.org/released-pf_ring-9-0-0-fully-fledged-hardware-flow-tracking/)

This is to announce a new PF\_RING release 9.0.0! This release brings significant improvements for a deeper flow tracking integrations, making PF\_RING even more powerful for building high-performance flow processing networking applications…

PF\_RINGAug 6, 2024

### [Released PF\_RING 8.8.0: Flow Table Offload and nVidia BlueField Support](https://www.ntop.org/released-pf_ring-8-8-flow-table-offload-and-nvidia-bluefield-support/)

This is to announce a new PF\_RING release 8.8.0! This release adds generic support for flow table offload, which is currently supported on Napatech adapters with Flow Manager enabled. This new technology…

## Try it on your own network

Download the free Community edition and see your first flows in five minutes.

[Download ntopng free](https://www.ntop.org/support/documentation/software-installation/)[Talk to an engineer](https://www.ntop.org/support/need-help/contacts/)
Source: https://www.ntop.org/capture-filter-extract-traffic-using-wireshark-and-pf_ring/