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
2c328dc4
Commit
2c328dc4
authored
10 years ago
by
virus2500
Browse files
Options
Downloads
Patches
Plain Diff
updated Readme
parent
7db94d07
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+19
-1
19 additions, 1 deletion
README.md
with
19 additions
and
1 deletion
README.md
+
19
−
1
View file @
2c328dc4
...
...
@@ -6,10 +6,28 @@ Create an ipset based blocklist from an text file (downloaded from e.g. blocklis
V1.0.2: Added a whitelist and blacklist
!!! IMPORTANT !!!!
You will need to install ipset!
Then open the blocklist.pl with your favorite text Editor and specify where your binarys are located.
If you want to run the script as an cronjob you will have to specify the absolute path to the whitelist.txt and blacklist.txt in blocklist.pl
my $whiteList = "whitelist.txt";
my $blackList = "blacklist.txt";
to e.g.
my $whiteList = "/scripts/blocklist/whitelist.txt";
my $blackList = "/scripts/blocklist/blacklist.txt"
where /scripts/blocklist/ is the path to the white and blacklist file!
While in blocklist.pl please also specify and verify where your binarys are located.
(These can be found via "which" e.g. "which iptables")
...
...
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