util/linuxfw: fix stateful packet filtering in nftables mode
To match iptables: https://github.com/tailscale/tailscale/blob/b5dbf155b1b0fbd5947160d8bca4085c6ff039a5/util/linuxfw/iptables_runner.go#L536 Updates #12066 Signed-off-by: Anton Tolchanov <anton@tailscale.com>
This commit is contained in:
committed by
Anton Tolchanov
parent
b5dbf155b1
commit
ac638f32c0
@@ -1773,7 +1773,7 @@ func makeStatefulRuleExprs(tunname string) []expr.Any {
|
|||||||
// going to our TUN.
|
// going to our TUN.
|
||||||
&expr.Meta{Key: expr.MetaKeyOIFNAME, Register: 1},
|
&expr.Meta{Key: expr.MetaKeyOIFNAME, Register: 1},
|
||||||
&expr.Cmp{
|
&expr.Cmp{
|
||||||
Op: expr.CmpOpNeq,
|
Op: expr.CmpOpEq,
|
||||||
Register: 1,
|
Register: 1,
|
||||||
Data: []byte(tunname),
|
Data: []byte(tunname),
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user