Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drop/edrop v6? #9

Open
gilgongo opened this issue Mar 8, 2024 · 1 comment
Open

drop/edrop v6? #9

gilgongo opened this issue Mar 8, 2024 · 1 comment

Comments

@gilgongo
Copy link

gilgongo commented Mar 8, 2024

EDIT: Oops wrong GH repo! This question refers to a fork I think...

To get the script to work with ipv6, I think (along with changing the relevant variables) I need to alter this line:

# iterate through all known spamming hosts
for IP in $( cat "$CACHE_FILE" | grep -e "^\([0-9]\{1,3\}\.\)\{3\}[0-9]\{1,3\}\/[0-9]\{1,2\} " | cut -d' ' -f1 ); do

But I'm not sure how. Does anyone know?

@gilgongo
Copy link
Author

gilgongo commented Mar 8, 2024

Oh actually, this works. Change line 49 to be:

for IP in $( awk '!/^;/{print $1}' "$FILE" ); do

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant