Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-admin-essentials
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etersoft-admin-essentials
Commits
672e682c
Commit
672e682c
authored
Dec 07, 2015
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fail2ban test: fix script
parent
d33e5822
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
check_rules.sh
fail2ban/check_rules.sh
+5
-2
No files found.
fail2ban/check_rules.sh
View file @
672e682c
...
...
@@ -10,9 +10,12 @@ test -d filter.d || cd /etc/fail2ban || fatal "Can't find fail2ban config"
test
-d
test.d
||
fatal
"Can't find test.d in
$(
pwd
)
."
which fail2ban-regex
>
/dev/null
||
fatal
for
i
in
test.d/
*
;
do
TEST
=
"*"
[
-n
"
$1
"
]
&&
TEST
=
"
$1
"
for
i
in
test.d/
$TEST
;
do
FILTERNAME
=
$(
basename
$i
)
FILTER
=
filter.d/
$FILTERNAME
.conf
FILTER
=
$(
pwd
)
/
filter.d/
$FILTERNAME
.conf
test
-r
"
$FILTER
"
||
exit
echo
echo
"Testing filter
$FILTER
with data..."
...
...
Write
Preview
Markdown
is supported
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