[client] Keep NetBird traffic out of third-party fwmark rules (#7314)

This commit is contained in:
Viktor Liu
2026-08-27 03:03:40 +09:00
committed by GitHub
parent f221347c7a
commit 0bd1147ff0
8 changed files with 307 additions and 57 deletions

View File

@@ -763,7 +763,7 @@ func (r *router) addNatRule(pair firewall.RouterPair) error {
exprs = append(exprs, sourceExp...)
exprs = append(exprs, destExp...)
var markValue uint32 = nbnet.PreroutingFwmarkMasquerade
markValue := nbnet.PreroutingFwmarkMasquerade
if pair.Inverse {
markValue = nbnet.PreroutingFwmarkMasqueradeReturn
}