[client] Mark redirected traffic early to match input filters on pre-DNAT ports (#3205)

This commit is contained in:
Viktor Liu
2025-01-23 18:00:51 +01:00
committed by GitHub
parent 790a9ed7df
commit eb2ac039c7
4 changed files with 145 additions and 87 deletions

View File

@ -8,10 +8,11 @@ import (
// Rule to handle management of rules
type Rule struct {
nftRule *nftables.Rule
nftSet *nftables.Set
ruleID string
ip net.IP
nftRule *nftables.Rule
mangleRule *nftables.Rule
nftSet *nftables.Set
ruleID string
ip net.IP
}
// GetRuleID returns the rule id