Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Thomas Capricelli
botfreak
Commits
6e998914302e
Commit
bdf48993
authored
Apr 12, 2022
by
Thomas Capricelli
Browse files
doc++
parent
bf59c02f1e07
Changes
1
Hide whitespace changes
Inline
Side-by-side
blockers/linux-ipset/README.rst
View file @
6e998914
...
...
@@ -12,6 +12,7 @@ Creating the sets
The kernel must be compiled with ipset support for hash:ip
CONFIG_IP_SET
CONFIG_IP_SET_HASH_IP
CONFIG_NETFILTER_XT_SET
And you need to create two sets:
ipset create botfreak-ipv4 hash:ip family inet maxelem 5000000
...
...
@@ -30,3 +31,11 @@ Gentoo
------
Put those 4 lines in a file /etc/local.d/botfreak.start
Resetting
---------
If for some reason you want to reset the sets, perform the following steps:
* stop the blocker: supervisorctl stop botfreak-blocker-ipset
* empty the ipsets:
ipset flush botfreak-ipv4
ipset flush botfreak-ipv6
* restart the blocker: supervisorctl start botfreak-blocker-ipset
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment