Files
netbird/client/firewall/iptables/rule.go
Viktor Liu fc1da94520 [client, management] Add port forwarding (#3275)
Add initial support to ingress ports on the client code.

- new types where added
- new protocol messages and controller
2025-03-09 16:06:43 +01:00

18 lines
280 B
Go

package iptables
// Rule to handle management of rules
type Rule struct {
ruleID string
ipsetName string
specs []string
mangleSpecs []string
ip string
chain string
}
// GetRuleID returns the rule id
func (r *Rule) ID() string {
return r.ruleID
}