[Netfilter] Log matching string instead of regex

master
andryyy 2020-04-20 20:27:27 +02:00
parent 15bf470b5c
commit 731f5cb354
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
2 changed files with 2 additions and 2 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 (regex: %s)' % (addr, rule_id, rule_regex)) logWarn('%s matched rule id %d (%s)' % (addr, rule_id, item['data']))
ban(addr) ban(addr)
def snat4(snat_target): def snat4(snat_target):

View File

@ -371,7 +371,7 @@ services:
- acme - acme
netfilter-mailcow: netfilter-mailcow:
image: mailcow/netfilter:1.33 image: mailcow/netfilter:1.34
stop_grace_period: 30s stop_grace_period: 30s
depends_on: depends_on:
- dovecot-mailcow - dovecot-mailcow