Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ChainInputFilterName is the name of the chain that is used for filtering incoming packets ChainInputFilterName = "NETBIRD-ACL-INPUT" // ChainOutputFilterName is the name of the chain that is used for filtering outgoing packets ChainOutputFilterName = "NETBIRD-ACL-OUTPUT" )
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 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
Comment will be ignored because some system this feature is not supported
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.