mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-02 13:03:56 +01:00
e69ec6ab6a
* Optimize rules with All groups * Use IP sets in ACLs (nftables implementation) * Fix squash rule when we receive optimized rules list from management
20 lines
286 B
Go
20 lines
286 B
Go
package nftables
|
|
|
|
import (
|
|
"github.com/google/nftables"
|
|
)
|
|
|
|
// Rule to handle management of rules
|
|
type Rule struct {
|
|
nftRule *nftables.Rule
|
|
nftSet *nftables.Set
|
|
|
|
ruleID string
|
|
ip []byte
|
|
}
|
|
|
|
// GetRuleID returns the rule id
|
|
func (r *Rule) GetRuleID() string {
|
|
return r.ruleID
|
|
}
|