1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2024-12-12 10:45:14 +02:00

[Netfilter] Log matched regex

This commit is contained in:
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

View File

@ -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):