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
540f6bd7
Commit
540f6bd7
authored
Oct 16, 2019
by
Ruzal Gimazov
Committed by
Ruzal Gimazov
Nov 10, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
create rule on prod-serv in jail.d
parent
b8e534e5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
eterban.spec
eterban.spec
+4
-1
eterban.conf
prod-server/etc/fail2ban/jail.d/eterban.conf
+4
-0
No files found.
eterban.spec
View file @
540f6bd7
...
...
@@ -18,7 +18,7 @@ BuildArchitectures: noarch
# error: File must begin with "/": %webserver_htdocsdir/maintenance/
BuildRequires: rpm-macros-webserver-common
Requires: python3 python3-module-redis-py
#
Requires: python3 python3-module-redis-py
%description
Etersoft ban service.
...
...
@@ -73,6 +73,8 @@ install -m 644 gateway/etc/systemd/system/* %buildroot/etc/systemd/system/
install -m 644 ban-server/data/www/* %buildroot%webserver_htdocsdir/%name/
install -m 644 prod-server/etc/fail2ban/action.d/* %buildroot/etc/fail2ban/action.d/
install -m 644 prod-server/etc/fail2ban/jail.d/* %buildroot/etc/fail2ban/action.d/
cp -a prod-server/usr/share/%name/* %buildroot%_datadir/%name/
%files gateway
...
...
@@ -89,6 +91,7 @@ cp -a prod-server/usr/share/%name/* %buildroot%_datadir/%name/
%config(noreplace) /etc/%name/eterban.conf
%_datadir/%name/ban.py
%config(noreplace) /etc/fail2ban/action.d/eterban.conf
%config(noreplace) /etc/fail2ban/jail.d/eterban.conf
%changelog
* Sat Sep 07 2019 Vitaly Lipatov <lav@altlinux.ru> 0.1-alt1
- initial build for ALT Sisyphus
prod-server/etc/fail2ban/jail.d/eterban.conf
0 → 100644
View file @
540f6bd7
[
eterban
]
enabled
=
true
filter
=
nginx
-
limit
-
req
action
=
eterban
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