From 32ef5508a0f0b28b8e23e1e780390d6b477d27c2 Mon Sep 17 00:00:00 2001 From: andryyy Date: Thu, 19 Mar 2020 12:23:31 +0100 Subject: [PATCH] [Netfilter] Log matched regex --- data/Dockerfiles/netfilter/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/Dockerfiles/netfilter/server.py b/data/Dockerfiles/netfilter/server.py index 29e16a41..14b852ba 100644 --- a/data/Dockerfiles/netfilter/server.py +++ b/data/Dockerfiles/netfilter/server.py @@ -298,7 +298,7 @@ def watch(): ip = ipaddress.ip_address(addr) if ip.is_private or ip.is_loopback: continue - logWarn('%s matched rule id %d' % (addr, rule_id)) + logWarn('%s matched rule id %d (regex: %s)' % (addr, rule_id, rule_regex)) ban(addr) def snat4(snat_target):