Documentation ¶
Index ¶
- type AclManager
- type Manager
- func (m *Manager) AddFiltering(ip net.IP, proto firewall.Protocol, sPort *firewall.Port, dPort *firewall.Port, ...) ([]firewall.Rule, error)
- func (m *Manager) AllowNetbird() error
- func (m *Manager) DeleteRule(rule firewall.Rule) error
- func (m *Manager) Flush() error
- func (m *Manager) InsertRoutingRules(pair firewall.RouterPair) error
- func (m *Manager) IsServerRouteSupported() bool
- func (m *Manager) RemoveRoutingRules(pair firewall.RouterPair) error
- func (m *Manager) Reset() error
- type Rule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AclManager ¶ added in v0.24.4
type AclManager struct {
// contains filtered or unexported fields
}
func (*AclManager) AddFiltering ¶ added in v0.24.4
func (m *AclManager) AddFiltering( ip net.IP, proto firewall.Protocol, sPort *firewall.Port, dPort *firewall.Port, direction firewall.RuleDirection, action firewall.Action, ipsetName string, comment string, ) ([]firewall.Rule, error)
AddFiltering rule to the firewall
If comment argument is empty firewall manager should set rule ID as comment for the rule
func (*AclManager) DeleteRule ¶ added in v0.24.4
func (m *AclManager) DeleteRule(rule firewall.Rule) error
DeleteRule from the firewall by rule definition
func (*AclManager) Flush ¶ added in v0.24.4
func (m *AclManager) Flush() error
Flush rule/chain/set operations from the buffer
Method also get all rules after flush and refreshes handle values in the rulesets
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager of iptables firewall
func (*Manager) AddFiltering ¶
func (m *Manager) AddFiltering( ip net.IP, proto firewall.Protocol, sPort *firewall.Port, dPort *firewall.Port, direction firewall.RuleDirection, action firewall.Action, ipsetName string, comment string, ) ([]firewall.Rule, error)
AddFiltering rule to the firewall
If comment argument is empty firewall manager should set rule ID as comment for the rule
func (*Manager) AllowNetbird ¶ added in v0.23.0
AllowNetbird allows netbird interface traffic
func (*Manager) DeleteRule ¶
DeleteRule from the firewall by rule definition
func (*Manager) Flush ¶ added in v0.21.9
Flush rule/chain/set operations from the buffer
Method also get all rules after flush and refreshes handle values in the rulesets todo review this method usage
func (*Manager) InsertRoutingRules ¶ added in v0.24.4
func (m *Manager) InsertRoutingRules(pair firewall.RouterPair) error
func (*Manager) IsServerRouteSupported ¶ added in v0.24.4
func (*Manager) RemoveRoutingRules ¶ added in v0.24.4
func (m *Manager) RemoveRoutingRules(pair firewall.RouterPair) error