From b48fa9b6af242fc04c1d1fe1ddf8f7bc1c8fdeed Mon Sep 17 00:00:00 2001 From: Lee Clemens Date: Sun, 8 Jan 2012 15:13:27 -0500 Subject: [PATCH] Added use_dns option in jail.conf --- config/jail.conf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/config/jail.conf b/config/jail.conf index cdef1cb3..3b779c9c 100644 --- a/config/jail.conf +++ b/config/jail.conf @@ -38,6 +38,16 @@ maxretry = 3 # pyinotify, gamin, polling. backend = auto +# "use_dns" specifies if jails should trust hostnames in logs, +# warn when reverse DNS lookups are performed, or ignore all hostnames in logs +# +# yes: if a hostname is encountered, a reverse DNS lookup will be performed. +# warn: if a hostname is encountered, a reverse DNS lookup will be performed, +# but it will be logged as a warning. +# no: if a hostname is encountered, will not be used for banning, +# but it will be logged as info. +use_dns = warn + # This jail corresponds to the standard configuration in Fail2ban 0.6. # The mail-whois action send a notification e-mail with a whois request