iptablesutil

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PreRoutingChain       = "PREROUTING"
	PostRoutingChain      = "POSTROUTING"
	OutputChain           = "OUTPUT"
	RavenMarkChain        = "RAVEN-MARK-CHAIN"
	RavenPostRoutingChain = "RAVEN-POSTROUTING"
	MangleTable           = "mangle"
	NatTable              = "nat"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IPTablesInterface

type IPTablesInterface interface {
	NewChainIfNotExist(table, chain string) error
	ClearAndDeleteChain(table, chain string) error
	List(table, chain string) ([]string, error)
	AppendIfNotExists(table, chain string, rulespec ...string) error
	DeleteIfExists(table, chain string, rulespec ...string) error
	InsertIfNotExists(table, chain string, pos int, rulespec ...string) error
}

func New

func New() (IPTablesInterface, error)

Jump to

Keyboard shortcuts

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