mirror of https://github.com/fail2ban/fail2ban
- Added named (bind9) example. Thanks to Yaroslav Halchenko
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@611 a942ae1a-1317-0410-a47c-b1dcaea8d605_tent/ipv6_via_aInfo
parent
49b2e40682
commit
5fd5a8112a
|
@ -165,3 +165,41 @@ action = ipfw[localhost=192.168.0.1]
|
||||||
sendmail-whois[name="SSH,IPFW", dest=you@mail.com]
|
sendmail-whois[name="SSH,IPFW", dest=you@mail.com]
|
||||||
logpath = /var/log/auth.log
|
logpath = /var/log/auth.log
|
||||||
ignoreip = 168.192.0.1
|
ignoreip = 168.192.0.1
|
||||||
|
|
||||||
|
# These jails block attacks against named (bind9). By default, logging is off
|
||||||
|
# with bind9 installation. You will need something like this:
|
||||||
|
#
|
||||||
|
# logging {
|
||||||
|
# channel lame-servers_file {
|
||||||
|
# file "/var/log/named/lame-servers.log" versions 3 size 30m;
|
||||||
|
# severity dynamic;
|
||||||
|
# print-time yes;
|
||||||
|
# };
|
||||||
|
# category lame-servers {
|
||||||
|
# lame-servers_file;
|
||||||
|
# };
|
||||||
|
# }
|
||||||
|
#
|
||||||
|
# in your named.conf to provide proper logging.
|
||||||
|
# This jail blocks UDP traffic for DNS requests.
|
||||||
|
|
||||||
|
[named-refused-udp]
|
||||||
|
|
||||||
|
enabled = false
|
||||||
|
filter = named-refused
|
||||||
|
action = iptables-multiport[name=Named, port="domain,953", protocol=udp]
|
||||||
|
sendmail-whois[name=Named, dest=you@mail.com]
|
||||||
|
logpath = /var/log/named/lame-servers.log
|
||||||
|
ignoreip = 168.192.0.1
|
||||||
|
|
||||||
|
# This jail blocks TCP traffic for DNS requests.
|
||||||
|
|
||||||
|
[named-refused-tcp]
|
||||||
|
|
||||||
|
enabled = false
|
||||||
|
filter = named-refused
|
||||||
|
action = iptables-multiport[name=Named, port="domain,953", protocol=tcp]
|
||||||
|
sendmail-whois[name=Named, dest=you@mail.com]
|
||||||
|
logpath = /var/log/named/lame-servers.log
|
||||||
|
ignoreip = 168.192.0.1
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue