Documentation ¶
Index ¶
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(bridgeName string) (*IpTablesClient, error)
NewIpTablesClient returns a new IpTablesClient.
func (*IpTablesClient) DeleteForwardingRules ¶
func (c *IpTablesClient) DeleteForwardingRules() error
DeleteForwardingRules deletes the forwarding rules.
func (*IpTablesClient) InstallForwardingRules ¶
func (c *IpTablesClient) InstallForwardingRules() error
InstallForwardingRules installs the forwarding rules.
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.