nftables

package
v0.63.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NftablesClient

type NftablesClient struct {
	// contains filtered or unexported fields
}

NftablesClient is a client for nftables.

func NewNftablesClient

func NewNftablesClient() (*NftablesClient, error)

NewNftablesClient returns a new NftablesClient.

func (*NftablesClient) DeleteForwardingRules

func (c *NftablesClient) DeleteForwardingRules(rule definitions.FirewallRule) error

DeleteForwardingRules deletes the forwarding rules for in or out interface in a given chain.

func (*NftablesClient) InstallForwardingRules

func (c *NftablesClient) InstallForwardingRules(rule definitions.FirewallRule) error

InstallForwardingRules installs the firewall `rule` for v4 and v6 address families.

func (*NftablesClient) InstallForwardingRulesForAF added in v0.62.0

func (c *NftablesClient) InstallForwardingRulesForAF(af nftables.TableFamily, rule definitions.FirewallRule) error

InstallForwardingRulesForAF installs the forwarding rules for the specified address family input interface and chain.

func (*NftablesClient) Name

func (*NftablesClient) 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