iptables

package
v0.0.0-...-b359386 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 License: Apache-2.0, Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrIptablesNotFound = errors.New("Iptables not found")
)

Functions

func EnableOutboundNAT

func EnableOutboundNAT(bridge, network string) error

func Exists

func Exists(args ...string) bool

Check if an existing rule exists

func Raw

func Raw(args ...string) ([]byte, error)

Types

type ChainError

type ChainError struct {
	Chain  string
	Output []byte
}

func (*ChainError) Error

func (e *ChainError) Error() string

Jump to

Keyboard shortcuts

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