Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/vm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorDaniel Hansson <daniel@techandme.se>2017-06-16 03:17:23 +0300
committerGitHub <noreply@github.com>2017-06-16 03:17:23 +0300
commitd10ae94089b80ae7ddc8c561100009ff9ff985ab (patch)
treee9efeed73d27c06872724ad0744ea41f1cc5e8b9 /apps
parent6cbff33a9cc02a6629c7f33193cbec6d53006a3e (diff)
ignore local IPs
Diffstat (limited to 'apps')
-rw-r--r--apps/fail2ban.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/fail2ban.sh b/apps/fail2ban.sh
index 388797b3..67338c78 100644
--- a/apps/fail2ban.sh
+++ b/apps/fail2ban.sh
@@ -40,7 +40,6 @@ then
echo "$NCLOG not found"
exit 1
else
- touch $NCLOG
chown www-data:www-data $NCLOG
fi
@@ -66,7 +65,7 @@ cat << FCONF > /etc/fail2ban/jail.local
# "ignoreip" can be an IP address, a CIDR mask or a DNS host. Fail2ban will not
# ban a host which matches an address in this list. Several addresses can be
# defined using space separator.
-ignoreip = 127.0.0.1/8
+ignoreip = 127.0.0.1/8 192.168.0.0/16 172.16.0.0/12 10.0.0.0/8
# "bantime" is the number of seconds that a host is banned.
bantime = $BANTIME_