firewall

package
v0.0.0-...-65ba27c Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chains

type Chains struct {
	V4FilterInput    *nftables.Chain
	V4FilterForward  *nftables.Chain
	V4NATOutput      *nftables.Chain
	V4NATPrerouting  *nftables.Chain
	V4NATPostrouting *nftables.Chain
	V6FilterInput    *nftables.Chain
}

Chains is the list of chains to be used for rules.

func EnsureChains

func EnsureChains() (Chains, error)

EnsureChains ensures the firewall foundation.

type RuleSource

type RuleSource func(chains Chains) ([]*nftables.Rule, error)

RuleSource generates firewall rules.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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