forked from h0tw1r3/pam_shield
-
Notifications
You must be signed in to change notification settings - Fork 0
/
shield.conf
53 lines (43 loc) · 1.31 KB
/
shield.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# /etc/security/shield.conf
#
# log debugging info to syslog
debug on
# block unknown-users - blocks only unknown users
# block all-users - blocks everyone
block unknown-users
# is it OK for the remote host to have no DNS entry?
allow_missing_dns yes
# is it OK for the remote host to have no reverse DNS entry?
allow_missing_reverse yes
# allow these hosts or networks by name
allow localhost
# allow .localdomain
# allow <cidr> - never lock out this network
#
# You should list all your local networks here to make sure no local user can
# lock you out from the inside
#
# This syntax is also supported: allow 127.0.0.1/8
allow 127.0.0.1/255.0.0.0
# location of the database file
db /var/lib/pam_shield/db
# external command that is run when a site should be blocked/unblocked
# default: block with null routing
trigger_cmd /usr/sbin/shield-trigger
# or block using iptables
# trigger_cmd /usr/sbin/shield-trigger-iptables
# or block using ufw
# trigger_cmd /usr/sbin/shield-trigger-ufw
# number of connections per interval from one site that triggers us
max_conns 10
# the interval and retention period may be specified in seconds, or
# with a postfix:
#
# 1s seconds 1w weeks
# 1m minutes 1M months (30 days)
# 1h hours 1y years
# 1d days
#
interval 5m
# period until the entry expires from the database again
retention 1w