mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-07-05 01:09:37 +00:00
Added fail2ban, though not sure its configured correctly yet
This commit is contained in:
61
docker/rootfs/fail2ban/action.d/pushover.conf
Normal file
61
docker/rootfs/fail2ban/action.d/pushover.conf
Normal file
@ -0,0 +1,61 @@
|
||||
## Version 2022/08/15
|
||||
#
|
||||
# Fail2Ban action configuration for Pushover
|
||||
# Author: https://linuxserver.io/
|
||||
#
|
||||
# Please ensure jail.local permission are secure as it will contain your Pushover API key
|
||||
#
|
||||
# This action requires the setup of a Pushover Application/API Token. This will require an account at https://pushover.net/
|
||||
#
|
||||
|
||||
[Definition]
|
||||
|
||||
# Option: actionstart
|
||||
# Notes.: command executed once at the start of Fail2Ban.
|
||||
# Values: CMD
|
||||
#
|
||||
# Comment out this action as necessary
|
||||
actionstart = curl -s -F "token=<token>" -F "user=<user>" -F "title=[Fail2Ban] <name>" -F "message=Jail <name> has been started successfully." https://api.pushover.net/1/messages
|
||||
|
||||
# Option: actionstop
|
||||
# Notes.: command executed once at the end of Fail2Ban
|
||||
# Values: CMD
|
||||
#
|
||||
# Comment out this action as necessary
|
||||
actionstop = curl -s -F "token=<token>" -F "user=<user>" -F "title=[Fail2Ban] <name>" -F "message=Jail <name> has been stopped." https://api.pushover.net/1/messages
|
||||
|
||||
# Option: actioncheck
|
||||
# Notes.: command executed once before each actionban command
|
||||
# Values: CMD
|
||||
#
|
||||
actioncheck =
|
||||
|
||||
# Option: actionban
|
||||
# Notes.: command executed when banning an IP. Take care that the
|
||||
# command is executed with Fail2Ban user rights.
|
||||
# Tags: See jail.conf(5) man page
|
||||
# Values: CMD
|
||||
#
|
||||
actionban = curl -s -F "token=<token>" -F "user=<user>" -F "title=[Fail2Ban] <name>" -F "message=Banned IP: <ip> Lines containing IP: `grep '<ip>' <logpath>`" https://api.pushover.net/1/messages
|
||||
|
||||
# Option: actionunban
|
||||
# Notes.: command executed when unbanning an IP. Take care that the
|
||||
# command is executed with Fail2Ban user rights.
|
||||
# Tags: See jail.conf(5) man page
|
||||
# Values: CMD
|
||||
#
|
||||
actionunban = curl -s -F "token=<token>" -F "user=<user>" -F "title=[Fail2Ban] <name>" -F "message=Unbanned IP: <ip> Lines containing IP: `grep '<ip>' <logpath>`" https://api.pushover.net/1/messages
|
||||
|
||||
[Init]
|
||||
|
||||
# Option: token
|
||||
# Notes.: The Pushover API Token/Key setup for Fail2Ban.
|
||||
# Values: [ STRING ]
|
||||
#
|
||||
token =
|
||||
|
||||
# Option: user
|
||||
# Notes.: Your Pushover User Key.
|
||||
# Values: [ STRING ]
|
||||
#
|
||||
user =
|
Reference in New Issue
Block a user