[Netfilter] Log matched regex

master
andryyy 2020-03-19 12:23:31 +01:00
parent 33dec1db21
commit 32ef5508a0
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
1 changed files with 1 additions and 1 deletions

View File

@ -298,7 +298,7 @@ def watch():
ip = ipaddress.ip_address(addr) ip = ipaddress.ip_address(addr)
if ip.is_private or ip.is_loopback: if ip.is_private or ip.is_loopback:
continue 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) ban(addr)
def snat4(snat_target): def snat4(snat_target):