iptables

package
v0.60.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 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(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.

Jump to

Keyboard shortcuts

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