Subversion Repositories configs

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
192 - 1
# Fail2Ban configuration file
2
#
3
# Author: Donald Yandt
4
#
5
 
6
[Init]
7
 
8
# Option:  name
9
# Notes    Default name of the chain
10
# Values:  STRING
11
name = default
12
 
13
# Option   port
14
# Notes    Can also use port numbers separated by a comma and in rich-rules comma and/or space.
15
# Value    STRING Default: 1:65535
16
port = 1:65535
17
 
18
# Option:  protocol
19
# Notes    [ tcp | udp | icmp | all ]
20
# Values:  STRING Default: tcp
21
protocol = tcp
22
 
23
# Option:  family(ipv4)
24
# Notes    specifies the socket address family type
25
# Values:  STRING
26
family = ipv4
27
 
28
# Option:  chain
29
# Notes    specifies the firewalld chain to which the Fail2Ban rules should be
30
#          added
31
# Values:  STRING  Default: INPUT_direct
32
chain = INPUT_direct
33
 
34
# Option:  zone
35
# Notes    use command firewall-cmd --get-active-zones to see a list of all active zones. See firewalld man pages for more information on zones
36
# Values:  STRING  Default: public
37
zone = public
38
 
39
# Option:  service
40
# Notes    use command firewall-cmd --get-services to see a list of services available
41
#          Examples services: amanda-client amanda-k5-client bacula bacula-client dhcp dhcpv6 dhcpv6-client dns freeipa-ldap freeipa-ldaps
42
#          freeipa-replication ftp high-availability http https imaps ipp ipp-client ipsec iscsi-target kadmin kerberos
43
#          kpasswd ldap ldaps libvirt libvirt-tls mdns mosh mountd ms-wbt mysql nfs ntp openvpn pmcd pmproxy pmwebapi pmwebapis pop3s
44
#          postgresql privoxy proxy-dhcp puppetmaster radius rpc-bind rsyncd samba samba-client sane smtp squid ssh synergy
45
#          telnet tftp tftp-client tinc tor-socks transmission-client vdsm vnc-server wbem-https xmpp-bosh xmpp-client xmpp-local xmpp-server
46
# Values:  STRING Default: ssh
47
service = ssh
48
 
49
# Option:  rejecttype (ipv4)
50
# Notes    See iptables/firewalld man pages for ipv4 reject types.
51
# Values:  STRING
52
rejecttype = icmp-port-unreachable
53
 
54
# Option:  blocktype (ipv4/ipv6)
55
# Notes    See iptables/firewalld man pages for jump targets. Common values are REJECT,
56
#          REJECT --reject-with icmp-port-unreachable, DROP
57
# Values:  STRING
58
blocktype = REJECT --reject-with <rejecttype>
59
 
60
# Option:  rich-blocktype (ipv4/ipv6)
61
# Notes    See firewalld man pages for jump targets. Common values are reject,
62
#          reject type="icmp-port-unreachable", drop
63
# Values:  STRING
64
rich-blocktype = reject type='<rejecttype>'
65
 
66
[Init?family=inet6]
67
 
68
# Option:  family(ipv6)
69
# Notes    specifies the socket address family type
70
# Values:  STRING
71
family = ipv6
72
 
73
# Option:  rejecttype (ipv6)
74
# Note:    See iptables/firewalld man pages for ipv6 reject types.
75
# Values:  STRING
76
rejecttype = icmp6-port-unreachable