Skip to content

mauriciovasquezbernal/packet_drop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

packet drop

The packet drop Gadget drops networking packets coming or going to given set of IP ranges.

Usage

  1. Install the ig binary on Linux: https://inspektor-gadget.io/docs/latest/reference/install-linux
  2. Build the gadget
$ sudo ig image build . -t packet_drop
  1. (optional) Push the image to a container registry
$ sudo ig image tag packet_drop <registry>/<image>:<tag>
$ sudo ig image push <registry>/<image>:<tag>
  1. Run the gadget
$ sudo ig run packet_drop --cidrs=192.168.1.0/16,8.8.8.8/32

By default the gadget attaches to all running containers. To attach to a networking interface on the host use the --iface flag:

$ sudo ig run packet_drop --cidrs=192.168.1.0/16,8.8.8.8/32 --iface=eth0

TODO

  • Support IPv6

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published