mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-26 10:03:47 +01:00
006ba32086
Fix ACL on routed traffic and code refactor
21 lines
295 B
Go
21 lines
295 B
Go
package nftables
|
|
|
|
import (
|
|
"net"
|
|
|
|
"github.com/google/nftables"
|
|
)
|
|
|
|
// Rule to handle management of rules
|
|
type Rule struct {
|
|
nftRule *nftables.Rule
|
|
nftSet *nftables.Set
|
|
ruleID string
|
|
ip net.IP
|
|
}
|
|
|
|
// GetRuleID returns the rule id
|
|
func (r *Rule) GetRuleID() string {
|
|
return r.ruleID
|
|
}
|