Got it

How do I use Linux commands to capture packets on the network?

Latest reply: Jul 2, 2018 09:43:00 540 1 0 0 0

Hi, all!

Good day to you!

Do you know how to use Linux commands to capture packets on the network?

Please see below:


This command is used to capture packets on the server when the MU and DCG receive streams.

Common formats:


1.By IP Address

tcpdump -i "NIC name" host "Filter IP address" -s0 -w/home/test.pcap

For example: tcpdump -i eth0 host 3.4.120.63 -s0 -w/home/test.pcap 


2.By PORT

tcpdump -i "NIC name" port "Filter PORT" -s0 -w/home/test.pacp

For example: tcpdump -i eth0 port 40010 -s0 -w/home/test.pcap


Thanks!

Thank you but will be better by screen shot and exact command results
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.