mirror of
https://github.com/netbirdio/netbird.git
synced 2026-07-16 19:49:56 +00:00
21 lines
530 B
Go
21 lines
530 B
Go
package iptables
|
|
|
|
import "github.com/netbirdio/netbird/client/firewall/manager"
|
|
|
|
// Rule to handle management of rules. Source set membership (when the
|
|
// rule was built against a shared hash:net ipset) is encoded in specs;
|
|
// DeleteFilterRule recovers it via findSets so the refcounter can drop
|
|
// the right reference.
|
|
type Rule struct {
|
|
id manager.RuleID
|
|
specs []string
|
|
mangleSpecs []string
|
|
chain string
|
|
v6 bool
|
|
}
|
|
|
|
// ID returns the rule id
|
|
func (r *Rule) ID() manager.RuleID {
|
|
return r.id
|
|
}
|