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, comment string, ) (fw.Rule, error)
AddFiltering rule to the firewall
If comment is empty rule ID is used as comment
func (*Manager) DeleteRule ¶
DeleteRule from the firewall by rule definition
Click to show internal directories.
Click to hide internal directories.