ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-users: Re: [Wireshark-users] port monitoring

From: Christopher Maynard <Christopher.Maynard@xxxxxxxxx>
Date: Wed, 5 Sep 2012 00:36:50 +0000 (UTC)
Guy Harris <guy@...> writes:

> > tcp.port != 80 and tcp.port !=443 and udp.port != 80 and udp.port !=443
> 
> Yes, that's the right way to filter it out once you've captured the packets. 
The capture filters would help
> if you want to avoid even *capturing* "uninteresting" packets (TCP or UDP
packets to or from port 443).

Even better is to use something like the following to avoid any possible
ambiguities that could possibly arise:

!(tcp.port == 80 or tcp.port == 443 or udp.port == 80 or udp.port == 443)