2013-12-14 00:34:12 +00:00
|
|
|
# Fail2Ban action configuration file for ufw
|
|
|
|
#
|
2014-08-02 10:21:59 +00:00
|
|
|
# You are required to run "ufw enable" before this will have any effect.
|
2013-12-14 00:40:47 +00:00
|
|
|
#
|
2014-08-02 10:21:59 +00:00
|
|
|
# The insert position should be appropriate to block the required traffic.
|
|
|
|
# A number after an allow rule to the application won't be of much use.
|
2013-12-14 00:34:12 +00:00
|
|
|
|
|
|
|
[Definition]
|
|
|
|
|
|
|
|
actionstart =
|
|
|
|
|
|
|
|
actionstop =
|
|
|
|
|
|
|
|
actioncheck =
|
|
|
|
|
|
|
|
actionban = [ -n "<application>" ] && app="app <application>" ; ufw insert <insertpos> <blocktype> from <ip> to <destination> $app
|
|
|
|
|
|
|
|
actionunban = [ -n "<application>" ] && app="app <application>" ; ufw delete <blocktype> from <ip> to <destination> $app
|
|
|
|
|
|
|
|
[Init]
|
|
|
|
# Option: insertpos
|
2014-08-02 10:21:59 +00:00
|
|
|
# Notes.: The position number in the firewall list to insert the block rule
|
2013-12-14 00:40:47 +00:00
|
|
|
insertpos = 1
|
2013-12-14 00:34:12 +00:00
|
|
|
|
|
|
|
# Option: blocktype
|
|
|
|
# Notes.: reject or deny
|
|
|
|
blocktype = reject
|
|
|
|
|
|
|
|
# Option: destination
|
|
|
|
# Notes.: The destination address to block in the ufw rule
|
|
|
|
destination = any
|
|
|
|
|
|
|
|
# Option: application
|
|
|
|
# Notes.: application from sudo ufw app list
|
|
|
|
application =
|
2013-12-14 00:40:47 +00:00
|
|
|
|
|
|
|
# DEV NOTES:
|
|
|
|
#
|
|
|
|
# Author: Guilhem Lettron
|
|
|
|
# Enhancements: Daniel Black
|