Documentation ¶
Index ¶
Constants ¶
View Source
const ( // FilterTableName is the name of the table that is used for filtering by the Netbird client FilterTableName = "netbird-acl" // FilterInputChainName is the name of the chain that is used for filtering incoming packets FilterInputChainName = "netbird-acl-input-filter" // FilterOutputChainName is the name of the chain that is used for filtering outgoing packets FilterOutputChainName = "netbird-acl-output-filter" AllowNetbirdInputRuleID = "allow Netbird incoming traffic" )
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, proto fw.Protocol, sPort *fw.Port, dPort *fw.Port, direction fw.RuleDirection, action fw.Action, ipsetName string, comment string, ) (fw.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
Click to show internal directories.
Click to hide internal directories.