iptables

package
v0.62.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2025 License: BSD-3-Clause Imports: 8 Imported by: 0

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() (*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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL