mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-11 17:31:12 +01:00
6dee89379b
* use ipset for iptables * Update unit-tests for iptables * Remove debug code * Update dependencies * Create separate sets for dPort and sPort rules * Fix iptables tests * Fix 0.0.0.0 processing in iptables with ipset
18 lines
257 B
Go
18 lines
257 B
Go
package iptables
|
|
|
|
// Rule to handle management of rules
|
|
type Rule struct {
|
|
ruleID string
|
|
ipsetName string
|
|
|
|
specs []string
|
|
ip string
|
|
dst bool
|
|
v6 bool
|
|
}
|
|
|
|
// GetRuleID returns the rule id
|
|
func (r *Rule) GetRuleID() string {
|
|
return r.ruleID
|
|
}
|