Skip to content
Snippets Groups Projects
Commit 2abe564a authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

increase maxelemt to fit more than 65536 entries

parent 6fc710c0
No related branches found
No related tags found
No related merge requests found
......@@ -139,8 +139,8 @@ sub iptablesCheck {
if(`$ipset list -n | $grep blocklist` =~ m/blocklist/ && `$ipset list -n | $grep blocklist` =~ m/blocklist-v6/ ) {
# Do nothing
} else {
`$ipset create blocklist hash:ip hashsize 4096`;
`$ipset create blocklist-v6 hash:ip hashsize 4096 family inet6`;
`$ipset create blocklist hash:ip hashsize 4096 maxelem 131050`;
`$ipset create blocklist-v6 hash:ip hashsize 4096 family inet6 maxelem 131050`;
$message = "Created ipset list blocklist";
logging($message);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment