Documentation ¶
Index ¶
- type IpTablesClient
- func (c *IpTablesClient) DeleteForwardingRules(rule definitions.FirewallRule) error
- func (c *IpTablesClient) DeleteForwardingRulesForAF(af string, rule definitions.FirewallRule) error
- func (c *IpTablesClient) InstallForwardingRules(rule definitions.FirewallRule) error
- func (c *IpTablesClient) InstallForwardingRulesForAF(af string, rule definitions.FirewallRule) error
- func (*IpTablesClient) Name() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IpTablesClient ¶
type IpTablesClient struct {
// contains filtered or unexported fields
}
IpTablesClient is a client for iptables.
func NewIpTablesClient ¶
func NewIpTablesClient() (*IpTablesClient, error)
NewIpTablesClient returns a new IpTablesClient.
func (*IpTablesClient) DeleteForwardingRules ¶
func (c *IpTablesClient) DeleteForwardingRules(rule definitions.FirewallRule) error
DeleteForwardingRules deletes the forwarding rules for v4 and v6 address families.
func (*IpTablesClient) DeleteForwardingRulesForAF ¶ added in v0.62.0
func (c *IpTablesClient) DeleteForwardingRulesForAF(af string, rule definitions.FirewallRule) error
DeleteForwardingRulesForAF deletes the forwarding rules for a specified AF.
func (*IpTablesClient) InstallForwardingRules ¶
func (c *IpTablesClient) InstallForwardingRules(rule definitions.FirewallRule) error
InstallForwardingRules installs the forwarding rules for v4 and v6 address families for the provided input or output interface and chain.
func (*IpTablesClient) InstallForwardingRulesForAF ¶ added in v0.62.0
func (c *IpTablesClient) InstallForwardingRulesForAF(af string, rule definitions.FirewallRule) error
InstallForwardingRulesForAF installs the forwarding rules for the specified address family.
func (*IpTablesClient) Name ¶
func (*IpTablesClient) Name() string
Name returns the name of the firewall client.
Click to show internal directories.
Click to hide internal directories.