Skip to content

Commit

Permalink
[client] Add missing peer ACL flush (#3247)
Browse files Browse the repository at this point in the history
  • Loading branch information
lixmal authored Jan 28, 2025
1 parent 46766e7 commit e20be23
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions client/firewall/nftables/acl_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,10 @@ func (m *AclManager) addIOFiltering(
UserData: userData,
})

if err := m.rConn.Flush(); err != nil {
return nil, fmt.Errorf(flushError, err)
}

rule := &Rule{
nftRule: nftRule,
mangleRule: m.createPreroutingRule(expressions, userData),
Expand All @@ -359,6 +363,7 @@ func (m *AclManager) addIOFiltering(
if ipset != nil {
m.ipsetStore.AddReferenceToIpset(ipset.Name)
}

return rule, nil
}

Expand Down

0 comments on commit e20be23

Please sign in to comment.