Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eterban
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eterban
Commits
35b19ca6
Commit
35b19ca6
authored
Apr 13, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eterban: add clear command
parent
35c6d206
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
eterban.sh
gateway/usr/bin/eterban.sh
+7
-0
No files found.
gateway/usr/bin/eterban.sh
View file @
35b19ca6
...
@@ -37,6 +37,12 @@ if [ "$command" = "search" ] ; then
...
@@ -37,6 +37,12 @@ if [ "$command" = "search" ] ; then
exit
exit
fi
fi
if
[
"
$command
"
=
"clear"
]
;
then
ipset flush
$setname
ipset flush
$setname_ipv6
exit
fi
cat
<<
EOF
cat
<<
EOF
Usage:
Usage:
eterban [count|list|search <ip>]
eterban [count|list|search <ip>]
...
@@ -46,4 +52,5 @@ Usage:
...
@@ -46,4 +52,5 @@ Usage:
search <ip> - search for ip in the list of banned IPs
search <ip> - search for ip in the list of banned IPs
unban <ip> - unban IP
unban <ip> - unban IP
ban <ip> - ban IP
ban <ip> - ban IP
clear - remove all IPs from ban
EOF
EOF
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