Skip to content

Commit

Permalink
Accept all traffic to lo
Browse files Browse the repository at this point in the history
  • Loading branch information
uablrek committed Jul 2, 2024
1 parent 34193e3 commit b13285f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/networkpolicy/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,11 @@ func (c *Controller) syncNFTablesRules(ctx context.Context) error {
Rule: knftables.Concat(
"ct", "state", "established,related", "accept"),
})
tx.Add(&knftables.Rule{
Chain: chainName,
Rule: knftables.Concat(
"oif", "lo", "accept"),
})

action := fmt.Sprintf("queue num %d", c.config.QueueID)
if c.config.FailOpen {
Expand Down

0 comments on commit b13285f

Please sign in to comment.