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
b468c17a
Commit
b468c17a
authored
Oct 27, 2019
by
Ruzal Gimazov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modified rules
parent
b8ff280d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
ban.conf
gateway/etc/fail2ban/action.d/ban.conf
+7
-2
eterban.conf
prod-server/etc/eterban/eterban.conf
+1
-0
No files found.
gateway/etc/fail2ban/action.d/ban.conf
View file @
b468c17a
...
...
@@ -5,10 +5,15 @@ before = iptables-common.conf
# Notes.: create list blacklist at the start of Fail2Ban
# Value: CMD (eterban-switcher.py)
actionstart
=
ipset
--
create
blacklist
iphash
<
iptables
> -
t
nat
-
I
PREROUTING
-
p
tcp
-
m
tcp
--
dport
80
-
m
set
--
match
-
set
blacklist
src
-
j
REDIRECT
--
to
-
ports
4564
<
iptables
> -
t
nat
-
I
PREROUTING
-
i
brlocal
-
p
tcp
-
m
tcp
--
dport
80
-
m
set
--
match
-
set
blacklist
src
-
j
DNAT
--
to
-
destination
91
.
232
.
225
.
67
<
iptables
> -
I
FORWARD
-
p
tcp
-
m
multiport
! --
dport
80
,
443
-
m
set
--
match
-
set
blacklist
src
-
j
REJECT
actionflush
=
ipset
flush
blacklist
actionstop
= <
iptables
> -
t
nat
-
D
PREROUTING
-
p
tcp
-
m
tcp
--
dport
80
-
m
set
--
match
-
set
blacklist
src
-
j
REDIRECT
--
to
-
ports
4564
actionstop
= <
iptables
> -
t
nat
-
D
PREROUTING
-
i
brlocal
-
p
tcp
-
m
tcp
--
dport
80
-
m
set
--
match
-
set
blacklist
src
-
j
DNAT
--
to
-
destination
91
.
232
.
225
.
67
<
iptables
> -
I
FORWARD
-
p
tcp
-
m
multiport
! --
dport
80
,
443
-
m
set
--
match
-
set
blacklist
src
-
j
REJECT
<
actionflush
>
ipset
destroy
blacklist
actionban
=
ipset
-
A
blacklist
<
ip
>
actionunban
=
ipset
-
D
blacklist
<
ip
>
prod-server/etc/eterban/eterban.conf
View file @
b468c17a
host_redis
=
10
.
20
.
30
.
101
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