Add protocol parameter to jail define

This commit is contained in:
Markus Frosch
2014-09-12 18:14:50 +02:00
parent 70c6bf4a88
commit 7ae861c216
3 changed files with 12 additions and 0 deletions
+2
View File
@@ -37,6 +37,7 @@ filter = fail2ban::jail
{
:name => 'sample1',
:port => ['42', '43'],
:protocol => 'udp',
:logpath => '/path/to/somelog',
:enable => true,
:ignoreip => [ '10.3.2.0/24', '192.168.56.0/24' ],
@@ -56,6 +57,7 @@ enabled = true
filter = fail2ban::jail
ignoreip = 10.3.2.0/24 192.168.56.0/24
port = 42,43
protocol = udp
action = iptables[name=SSH, port=ssh, protocol=tcp]
mail-whois[name=SSH, dest=yourmail@mail.com]
logpath = /path/to/somelog