firewall

package
v0.0.0-...-e7ef357 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2026 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadPingStatus

func LoadPingStatus() string

func UpdatePingStatus

func UpdatePingStatus(enable string) error

Types

type FilterClient

type FilterClient interface {
	Name() string // ufw firewalld iptables
	Start() error
	Stop() error
	Restart() error
	Reload() error
	Status() (bool, error)
	Version() (string, error)

	ListPort() ([]client.FireInfo, error)
	ListAddress() ([]client.FireInfo, error)

	Port(port client.FireInfo, operation string) error
	RichRules(rule client.FireInfo, operation string) error
}

FilterClient is the filter capability surface; port forwarding lives in its own adapter and is no longer reachable from here.

func NewFirewallClient

func NewFirewallClient() (FilterClient, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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