ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Wireshark-users: Re: [Wireshark-users] Capture Filter for Country

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Mon, 30 Mar 2009 11:40:23 -0700

On Mar 30, 2009, at 11:28 AM, Gerald Combs wrote:

Ron Gallimore wrote:
Is it possible to create a capture filter to exclude any US IP
addresses? I am using Wireshark 1.1.2 with the GeoIP database loaded.

You should be able to use something like

   ip and not ip.geoip.country == "United States"

or

   ip.geoip.country and not ip.geoip.country == "United States"

...which works as a display filter, but not a capture filter.