Skip to content

Commit 097c5ed

Browse files
authored
util/linuxfw: insert rather than append nftables DNAT rule (tailscale#11303)
Ensure that the latest DNATNonTailscaleTraffic rule gets inserted on top of any pre-existing rules. Updates tailscale#11281 Signed-off-by: Irbe Krumina <irbe@tailscale.com>
1 parent e324a56 commit 097c5ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util/linuxfw/nftables_runner.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ func (n *nftablesRunner) DNATNonTailscaleTraffic(tunname string, dst netip.Addr)
173173
},
174174
},
175175
}
176-
n.conn.AddRule(dnatRule)
176+
n.conn.InsertRule(dnatRule)
177177
return n.conn.Flush()
178178
}
179179

0 commit comments

Comments
 (0)