본문 바로가기
  • AI (Artificial Intelligence)
Skills/Unix, Linux

How to install tcpreplay on Linux

by 로샤스 2015. 3. 18.

Tcpreplay is a suite of command-line utilities that are used to "replay" previously captured packet dumps in a real network. In order to use tcpreplay, you first need to capture live network traffic using packet capture tools such as tcpdump, rewrite TCP/IP packet headers of the captured packets appropriately (usually MAC and IP addresses), and then re-inject the packets on to any arbitrary network under consideration.

tcpreplay is useful when you are testing network devices and middleware, such as routers, switches, firewalls and intrusion detection/prevention systems, because it allows you to test the devices under a controlled environment using reproducible scenarios.

If you would like to install tcpreplay on Linux, you can refer to the following distro-specific instructions.

To install tcpreplay on Ubuntu or Debian, run the following:

$ sudo apt-get install tcpreplay

To install tcpreplay on Fedora, simply run:
$ sudo yum install tcpreplay

To install tcpreplay on CentOS or RHEL 5 or earlier, firstset up RPMforge repository on your system. Then, installtcpreplay using yum.

$ sudo yum install tcpreplay

To install tcpreplay on CentOS or RHEL 6 or higher, build tcpreplay from the source, and install it manually as follows.

$ sudo yum groupinstall "Development Tools"
$ sudo yum install libpcap-devel
$ wget http://downloads.sourceforge.net/project/tcpreplay/tcpreplay/3.4.4/tcpreplay-3.4.4.tar.gz
$ tar xvfvz tcpreplay-3.4.4.tar.gz
$ cd tcpreplay-3.4.4
$ ./configure --enable-dynamic-link
$ make
$ sudo make install







출처 : http://xmodulo.com/how-to-install-tcpreplay-on-linux.html










댓글