I need a capture filter like the one mentioned below: In nutshell, I want udp and sctp packets that are sent from/to IP1 or IP2 and between IP3-IP4 and IP3-IP5. Now problem is the way tshark processes these filters. I am not being able to get the capture. Please suggest and help ! asked 28 Nov '12, 06:52 Rajat edited 28 Nov '12, 09:23 grahamb ♦ |
One Answer:
The 'correct' filter (but not necessarily the best/fastest filter), would be:
where:
etc. Regards answered 28 Nov '12, 07:02 Kurt Knochner ♦ edited 29 Nov '12, 04:33 showing 5 of 6 show 1 more comments |
Hi, this filter works fine on Windows but fails on linux. I am using Wireshark:1.6.3 on both. Seems in linux "(" is not accepted. Can you please help?
The error in linux is: -bash: syntax error near unexpected token `('
Same command on Windows works.. But fails on linux.
Try using double quotes
there was an error. Imbalance of opening/closing braces (copy-paste error). Please try the updated filter.
Interesting that the borked version worked on Windows but not on Linux
It does not.
Fault filter:
I get this error:
tshark: Invalid capture filter
So, I don't know what filter @Rajat actually usesd.