2023-03-16 10:00:08 +01:00
|
|
|
package iptables
|
|
|
|
|
|
|
|
// Rule to handle management of rules
|
|
|
|
type Rule struct {
|
|
|
|
id string
|
|
|
|
specs []string
|
2023-05-29 16:00:18 +02:00
|
|
|
dst bool
|
2023-03-16 10:00:08 +01:00
|
|
|
v6 bool
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetRuleID returns the rule id
|
|
|
|
func (r *Rule) GetRuleID() string {
|
|
|
|
return r.id
|
|
|
|
}
|