mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-22 08:03:30 +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
|
|
}
|