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

Question on adding custom entries #7

Open
void4ever opened this issue Jan 21, 2024 · 0 comments
Open

Question on adding custom entries #7

void4ever opened this issue Jan 21, 2024 · 0 comments

Comments

@void4ever
Copy link

First off thank you for this, I've got it up and running and already within 10 minutes it's blocked around 200 requests.

I had a quick question as the doc was just a tad unclear (to me). Along with this auto refreshing list of IPs, If I want to add my own custom list of IPs can I do that with the command mentioned under the "Usage" section?
sudo ipset add ufw-blocklist-ipsum a.b.c.d

The reason for my confusion is the way it's worded, it sounds like that command is only used for testing after doing a flush-all and once your testing is finished you'd restore the blocklist.

If I add manual entries using that command, will they stay, or would they be wiped when the cron grabbed the updated list once a day?

Would it be better to read in my own custom list using ufw's commands, something like:
while read line; do sudo ufw deny from $line; done < custom_block_list.txt

Void4ever

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