Tcpreplay (TCP (Transmission Control Protocol) Replay) is an open source and free software project implemented in C and designed to act as a command-line tool that comprises of several utilities for *NIX operating systems, allowing users to test a variety of network devices by using captured traffic via the libpcap library.
The program is written in the C programming language and it is fully compatible with various GNU/Linux distributions, as well as other UNIX-like systems, such as Solaris, BSD and Mac OS X.
What tools are included?
The program comes pre-loaded with several CLI tools, including tcpprep, tcprewrite, tcpreplay and tcpbridge. They allow you to classify network traffic as server and client, replay the traffic back onto the network, rewrite TCP/IP and Layer 2, 3 and 4 headers, as well as to bridge two network segments.
Designed for people who want to test network devices
Tcpreplay has been designed from the ground up as a suite of command-line utilities that can be used by those who want to test router, IPS (Intrusion Prevention System), UTM (Unified Threat Management), firewall and NIDS (Network Intrusion Detection System) network devices.
Getting started with Tcpreplay
To use the commands included in the Tcpreplay software to test your network hardware, you should first install the program by downloading the latest version from Softpedia, where it is distributed for free as a source archive in the tar.gz file format.
To install it, save the archive locally, unpack it, open a terminal emulator and navigate to the location of the extracted archive files using the ‘cd’ command. Then, run the ‘./configure && make’ command, followed by the ‘make install’ command, which should be executed as root or with sudo.
After installation, run the ‘tcpreplay --help’ command in a terminal emulator to view the program’s default command-line options, as well as usage examples. In addition, you can check the program’s website for detailed usage examples.