Documentation ¶
Index ¶
- Constants
- type Manager
- func (m *Manager) AddFiltering(ip net.IP, protocol firewall.Protocol, sPort *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 ¶
View Source
const (
Ipv4Forwarding = "netbird-rt-forwarding"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager of iptables firewall
func (*Manager) AddFiltering ¶
func (m *Manager) AddFiltering( ip net.IP, protocol 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
Comment will be ignored because some system this feature is not supported
func (*Manager) AllowNetbird ¶
AllowNetbird allows netbird interface traffic
func (*Manager) DeleteRule ¶
DeleteRule from the firewall by rule definition
func (*Manager) InsertRoutingRules ¶
func (m *Manager) InsertRoutingRules(pair firewall.RouterPair) error
func (*Manager) IsServerRouteSupported ¶
func (*Manager) RemoveRoutingRules ¶
func (m *Manager) RemoveRoutingRules(pair firewall.RouterPair) error
Click to show internal directories.
Click to hide internal directories.