Skip to content

VedRatan/PacketGuard-XDP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PacketGuard-XDP

First of all create a object file by running the following command:

clang -O2 -g -Wall -target bpf -c dropipv4.c -o dropipv4.o

Then build the go file:

go build drop.go

Finally run the script using the following command, you can chanage the network interface and port dynamically in the cmd terminal:

sudo ./drop {network_interface} {PORT}

example:

sudo ./drop lo 4040

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published