Hi, Community!
Good day to you!
Today I will share with you how to capture packets using Tcpdump.
Firstly, you should download the tool from the network.
The other download way:
Then, let's begin to use it!
Procedure
Upload the Tcpdump tool to the server path which you want to capture packets. For example: /opt/temp.
Log in to the Xshell as root user.
Run the following commands to change the rights.
cd /opt/temp
chmod 777 tcpdump
Run the following command to capture packets.
./tcpdump -i bond1 -s 0 -w filename.cap
You can enter Ctrl+C to stop the capture.
Run the chmod 777 filename.cap command, and copy the file to the local PC, and use Wireshark to parse the file.
Can you get it?
Welcome to communicate with me.
Thanks!