Skip to content

Commit

Permalink
fix log target
Browse files Browse the repository at this point in the history
  • Loading branch information
bartoszWojciechO committed Dec 17, 2024
1 parent 073c4b7 commit 90e621c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon/firewall/iptables/iptables.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 90e621c

Please sign in to comment.