Browse Source

[Netfilter] Log matching string instead of regex

andryyy 5 years ago
parent
commit
731f5cb354
2 changed files with 2 additions and 2 deletions
  1. 1 1
      data/Dockerfiles/netfilter/server.py
  2. 1 1
      docker-compose.yml

+ 1 - 1
data/Dockerfiles/netfilter/server.py

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

+ 1 - 1
docker-compose.yml

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