You are analyzing a traffic on the network with Wireshark. You want to routinely run a cron job which will run the capture against a specific set of IPs. "" 192.168.8.0/24. What command you would use?
A.
tshark ""net 192.255.255.255 mask 192.168.8.0
B.
wireshark ""capture ""local ""masked 192.168.8.0 ""range 24
tshark -f "net 192.168.8.0/24" is working for me. Your command is not working, and not even documented https://www.wireshark.org/docs/wsug_html_chunked/ChCustCommandLine.html
Correct option is C: sudo tshark -f "net 192.168.8.0/24"
A capture or read filter can either be specified with the -f or -R option, respectively, in which case the entire filter expression must be specified as a single argument (which means that if it contains spaces, it must be quoted), or can be specified with command-line arguments after the option arguments, in which case all the arguments after the filter arguments are treated as a filter expression.
Reference: tshark documentation https://www.wireshark.org/docs/man-pages/tshark.html
wireshark –capture –local –masked 192.168.8.0 –range 24
Anything like this is not documented anywhere. Pretty sure the correct answer is tshark -f --net 192.168.8.0/24
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
goodlife
Highly Voted 3Â years, 7Â months agoVincent_Lu
Most Recent 6Â months, 4Â weeks agociscolearning
3Â years, 4Â months agobleble00001
3Â years, 6Â months agopamplemousse
3Â years, 6Â months agoexampreper
3Â years, 8Â months agohasib125
3Â years, 8Â months ago