1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2024-11-24 08:32:50 +02:00

[Netfilter] Update to 1.58

This commit is contained in:
FreddleSpl0it 2024-02-14 13:58:07 +01:00
parent d8baadb991
commit 3b83949ba3
No known key found for this signature in database
GPG Key ID: 00E14E7634F4BEC5
3 changed files with 8 additions and 3 deletions

View File

@ -13,9 +13,12 @@ class Logger:
tolog['time'] = int(round(time.time()))
tolog['priority'] = priority
tolog['message'] = message
if self.r is not None:
self.r.lpush('NETFILTER_LOG', json.dumps(tolog, ensure_ascii=False))
print(message)
if self.r is not None:
try:
self.r.lpush('NETFILTER_LOG', json.dumps(tolog, ensure_ascii=False))
except Exception as ex:
print('Failed logging to redis: %s' % (ex))
def logWarn(self, message):
self.log('warn', message)

View File

@ -452,6 +452,8 @@ class NFTables:
continue
rule = _object["rule"]["expr"][0]["match"]
if not "payload" in rule["left"]:
continue
left_opt = rule["left"]["payload"]
if not left_opt["protocol"] == _family:
continue

View File

@ -441,7 +441,7 @@ services:
- acme
netfilter-mailcow:
image: mailcow/netfilter:1.57
image: mailcow/netfilter:1.58
stop_grace_period: 30s
restart: always
privileged: true