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:
To install tcpreplay on CentOS or RHEL 5 or earlier, firstset up RPMforge repository on your system. Then, installtcpreplay using yum.
To install tcpreplay on CentOS or RHEL 6 or higher, build tcpreplay from the source, and install it manually as follows.
$ 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
'Skills > Unix, Linux' 카테고리의 다른 글
VNC Server 설정 다시한번 파헤치기 (0) | 2015.10.30 |
---|---|
리눅스 환경에서 mysql 연동하기 (0) | 2015.09.23 |
.bash_profile과 .bashrc의 차이점 (0) | 2015.03.05 |
[Linux] 아파치를 이용한 리눅스 웹 서버 구축 (0) | 2014.11.26 |
[CentOS] Repair Mode (0) | 2014.10.16 |
댓글