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:
parent
d8baadb991
commit
3b83949ba3
@ -13,9 +13,12 @@ class Logger:
|
|||||||
tolog['time'] = int(round(time.time()))
|
tolog['time'] = int(round(time.time()))
|
||||||
tolog['priority'] = priority
|
tolog['priority'] = priority
|
||||||
tolog['message'] = message
|
tolog['message'] = message
|
||||||
if self.r is not None:
|
|
||||||
self.r.lpush('NETFILTER_LOG', json.dumps(tolog, ensure_ascii=False))
|
|
||||||
print(message)
|
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):
|
def logWarn(self, message):
|
||||||
self.log('warn', message)
|
self.log('warn', message)
|
||||||
|
@ -452,6 +452,8 @@ class NFTables:
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
rule = _object["rule"]["expr"][0]["match"]
|
rule = _object["rule"]["expr"][0]["match"]
|
||||||
|
if not "payload" in rule["left"]:
|
||||||
|
continue
|
||||||
left_opt = rule["left"]["payload"]
|
left_opt = rule["left"]["payload"]
|
||||||
if not left_opt["protocol"] == _family:
|
if not left_opt["protocol"] == _family:
|
||||||
continue
|
continue
|
||||||
|
@ -441,7 +441,7 @@ services:
|
|||||||
- acme
|
- acme
|
||||||
|
|
||||||
netfilter-mailcow:
|
netfilter-mailcow:
|
||||||
image: mailcow/netfilter:1.57
|
image: mailcow/netfilter:1.58
|
||||||
stop_grace_period: 30s
|
stop_grace_period: 30s
|
||||||
restart: always
|
restart: always
|
||||||
privileged: true
|
privileged: true
|
||||||
|
Loading…
Reference in New Issue
Block a user