WIP: Added a way to block ASNs and IPs with ipset #6

Draft
benpro wants to merge 1 commit from ipset-denylist into master
First-time contributor

This is a work in progress to ban ASNs and IP addresses in an efficient
way with ipset.
More things in minifirewall could be replaced with ipset, like the
HTTPSITE part, but for now I'm only focused on banning networks.

Please review the code (I followed the current coding style), test it,
and make comments!

This is a work in progress to ban ASNs and IP addresses in an efficient way with `ipset`. More things in minifirewall could be replaced with `ipset`, like the HTTPSITE part, but for now I'm only focused on banning networks. Please review the code (I followed the current coding style), test it, and make comments!
benpro added spent time 2020-07-22 03:38:01 +02:00
3h
This pull request has changes conflicting with the target branch.
  • minifirewall
  • minifirewall.conf

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin ipset-denylist:ipset-denylist
git checkout ipset-denylist

Merge

Merge the changes and update on Forgejo.
git checkout master
git merge --no-ff ipset-denylist
git checkout master
git merge --ff-only ipset-denylist
git checkout ipset-denylist
git rebase master
git checkout master
git merge --no-ff ipset-denylist
git checkout master
git merge --squash ipset-denylist
git checkout master
git merge --ff-only ipset-denylist
git checkout master
git merge ipset-denylist
git push origin master
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Total time spent: 3 hours
benpro
3 hours
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: evolix/minifirewall#6
No description provided.