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:
parent
33dec1db21
commit
32ef5508a0
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user