boratanrikulu / durdur

eBPF-powered L3/L4 packet dropper.
GNU General Public License v3.0
78 stars 1 forks source link

File option #8

Open mrbluecoat opened 1 month ago

mrbluecoat commented 1 month ago

Cool project! Is there a way to list a large number of entries via a file? As a simple example, instead of durdur drop --src "192.0.1.1" --dns "example.com" have something like:

$ cat /root/mylist.txt
192.0.1.1
example.com
$ durdur drop file /root/mylist.txt
boratanrikulu commented 1 month ago

Hello, nice idea. I can add that feature.