feat: 🔧 change subnet size from 128 to 64 on ipv6
I think it's better to block /64 by default instead of /128 and if users want to change then they could
This commit is contained in:
parent
3f1a5af88b
commit
22152269f3
|
@ -75,7 +75,7 @@ def refreshF2boptions():
|
||||||
f2boptions['max_attempts'] = r.get('F2B_MAX_ATTEMPTS') or 10
|
f2boptions['max_attempts'] = r.get('F2B_MAX_ATTEMPTS') or 10
|
||||||
f2boptions['retry_window'] = r.get('F2B_RETRY_WINDOW') or 600
|
f2boptions['retry_window'] = r.get('F2B_RETRY_WINDOW') or 600
|
||||||
f2boptions['netban_ipv4'] = r.get('F2B_NETBAN_IPV4') or 32
|
f2boptions['netban_ipv4'] = r.get('F2B_NETBAN_IPV4') or 32
|
||||||
f2boptions['netban_ipv6'] = r.get('F2B_NETBAN_IPV6') or 128
|
f2boptions['netban_ipv6'] = r.get('F2B_NETBAN_IPV6') or 64
|
||||||
r.set('F2B_OPTIONS', json.dumps(f2boptions, ensure_ascii=False))
|
r.set('F2B_OPTIONS', json.dumps(f2boptions, ensure_ascii=False))
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue