Skip to content
Snippets Groups Projects
Commit d4bb8402 authored by virus2500's avatar virus2500
Browse files

Merge pull request #6 from Sheogorath-SI/large-lists

increase maxelemt to fit more than 65536 entries
parents 6fc710c0 2abe564a
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