How to show and block ip UDP incoming in c# WinForms. Show ip and incoming packet in label like Anti DDOS Guardian
Asked
Active
Viewed 787 times
-1
-
Why not use Windows inbuilt, or third party, firewall? – Richard Jan 08 '16 at 13:47
-
Can you please specify what you're trying to do? Do you want to check all incoming packets on a specific socket or what else? – LucaMus Jan 08 '16 at 14:06
-
I want to check and block UDP Flood DDOS – Bieber Kieu Jan 08 '16 at 14:17
-
Ok, but you want to achieve this in an existing WinForm application or create a new ad hoc application? – LucaMus Jan 08 '16 at 14:37
-
Create new :) ,i want begin from new project – Bieber Kieu Jan 08 '16 at 14:39
1 Answers
2
I made a similar application some years ago using WinpkFilter. I don't know if there is something better, but this gives you all that need to read all packets passing on network interface. Once you read the packets, you can check protocol type and make all operation you need to prevent DDOS.
You have to install the WinpkFilter driver and link the ndisapi.dll library, I suggest you to give it a try and see if this can help you.

LucaMus
- 721
- 7
- 17