Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
blocklist-with-ipset
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
virus2500
blocklist-with-ipset
Commits
2abe564a
Commit
2abe564a
authored
9 years ago
by
Sheogorath
Browse files
Options
Downloads
Patches
Plain Diff
increase maxelemt to fit more than 65536 entries
parent
6fc710c0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
blocklist.pl
+2
-2
2 additions, 2 deletions
blocklist.pl
with
2 additions
and
2 deletions
blocklist.pl
+
2
−
2
View file @
2abe564a
...
...
@@ -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
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment