Skip to content

Latest commit

 

History

History
52 lines (38 loc) · 1.03 KB

README.md

File metadata and controls

52 lines (38 loc) · 1.03 KB

UDP Dedupe

This program inspects network packets and drops any which are duplicates.

Download

Download from the releases section.

Usage

Edit settings.json. The Filter specifies what packets to inspect.


Example 1 - Inspect all UDP packets

{
  "Checks": [
    {
      "Filter": "udp",
      "TimeWindowInMilliseconds": 5000
    }
  ]
}

Example 2 - Inspect incoming IPV4 UDP packets with destination port 15000

{
  "Checks": [
    {
      "Filter": "inbound && !ipv6 && udp && udp.DstPort == 15000",
      "TimeWindowInMilliseconds": 5000
    }
  ]
}

More info about the WinDivert Filter Language here.


Run the program

udp_dedupe.exe

How does it work?

The program uses the WinDivert library to capture the packets specified in the filter. If it sees the same payload in a certain window of time, it will drop the packet.