Skip to content
This repository was archived by the owner on Aug 8, 2022. It is now read-only.

Commit fd66f02

Browse files
authored
Move LAN subnet ignore back to conf
1 parent f8b31aa commit fd66f02

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

root/defaults/fail2ban/README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@ This example uses `apprise-api` for notifications, `cloudflare` for additional w
1414

1515
```ini
1616
[DEFAULT]
17-
# Prevents banning LAN subnets
18-
ignoreip = 127.0.0.1/8 ::1
19-
10.0.0.0/8
20-
172.16.0.0/12
21-
192.168.0.0/16
22-
2317
# Change the default ban action from "iptables-multiport", which causes issues on some platforms, to "iptables-allports".
2418
#banaction = %(banaction_allports)s
2519

root/defaults/fail2ban/jail.conf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,12 @@ before = paths-lsio.conf
9090
# "ignoreip" can be a list of IP addresses, CIDR masks or DNS hosts. Fail2ban
9191
# will not ban a host which matches an address in this list. Several addresses
9292
# can be defined using space (and/or comma) separator.
93-
#ignoreip = 127.0.0.1/8 ::1
93+
# lsio value
94+
# Prevents banning LAN subnets
95+
ignoreip = 127.0.0.1/8 ::1
96+
10.0.0.0/8
97+
172.16.0.0/12
98+
192.168.0.0/16
9499

95100
# External command that will take an tagged arguments to ignore, e.g. <ip>,
96101
# and return true if the IP is to be ignored. False otherwise.

0 commit comments

Comments
 (0)