First time here? Check out the FAQ!
THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
0

I only want to get UDP packets with source port 8000

  • retag add tags

I used the tshark command "tshark -i eth1 udp dst port 8000", but no data packets were obtained. I want to ask if the command is correct.

hahaha's avatar
1
hahaha
asked 2021-06-23 08:11:36 +0000
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

I want to ask if the command is correct.

No, it's not.

You want packets with the source port being 8000, but "dst port 8000" matches packets with the destination port being 8000.

Try

tshark -i eth1 udp src port 8000
Guy Harris's avatar
19.9k
Guy Harris
answered 2021-06-23 08:38:38 +0000
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer