From 1d45c563b785cc2849a6cd273ab0a5ee6456ee64 Mon Sep 17 00:00:00 2001 From: andryyy Date: Fri, 20 Sep 2019 14:30:48 +0200 Subject: [PATCH] [Netfilter] Set default ban masks to 32 and 128 --- data/Dockerfiles/netfilter/server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/Dockerfiles/netfilter/server.py b/data/Dockerfiles/netfilter/server.py index 78cafc68..a50d0717 100644 --- a/data/Dockerfiles/netfilter/server.py +++ b/data/Dockerfiles/netfilter/server.py @@ -75,8 +75,8 @@ def refreshF2boptions(): f2boptions['ban_time'] = r.get('F2B_BAN_TIME') or 1800 f2boptions['max_attempts'] = r.get('F2B_MAX_ATTEMPTS') or 10 f2boptions['retry_window'] = r.get('F2B_RETRY_WINDOW') or 600 - f2boptions['netban_ipv4'] = r.get('F2B_NETBAN_IPV4') or 24 - f2boptions['netban_ipv6'] = r.get('F2B_NETBAN_IPV6') or 64 + f2boptions['netban_ipv4'] = r.get('F2B_NETBAN_IPV4') or 32 + f2boptions['netban_ipv6'] = r.get('F2B_NETBAN_IPV6') or 128 r.set('F2B_OPTIONS', json.dumps(f2boptions, ensure_ascii=False)) else: try: