From 90e621c87d10a5f0b7a67e91476fcb75689b1ef6 Mon Sep 17 00:00:00 2001 From: Bartosz Oleaczek Date: Tue, 17 Dec 2024 10:01:09 +0100 Subject: [PATCH] fix log target --- daemon/firewall/iptables/iptables.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/firewall/iptables/iptables.go b/daemon/firewall/iptables/iptables.go index aaa447f9..f17cd816 100644 --- a/daemon/firewall/iptables/iptables.go +++ b/daemon/firewall/iptables/iptables.go @@ -107,7 +107,7 @@ func (ipt *IPTables) applyRule(rule firewall.Rule, add bool) error { } for _, ipTableRule := range ipTablesRules { if !rule.Allow { - prefix := fmt.Sprintf("-j ULOG --nflog-prefix \"LOG-pre-%s\"", rule.Name) + prefix := fmt.Sprintf("-j NFLOG --nflog-prefix \"LOG-pre-%s\"", rule.Name) log.Println(internal.DebugPrefix, "[iptables-debug], add rule: ", prefix) logRule := strings.Replace(ipTableRule, "-j DROP", prefix, -1) args := fmt.Sprintf("%s %s -w"+internal.SecondsToWaitForIptablesLock, flag, logRule)