transparentproxy

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShouldEnableIPv6 added in v1.8.1

func ShouldEnableIPv6() (bool, error)

Types

type ExperimentalTransparentProxy added in v1.8.1

type ExperimentalTransparentProxy struct{}

func (*ExperimentalTransparentProxy) Cleanup added in v1.8.1

func (tp *ExperimentalTransparentProxy) Cleanup(dryRun, verbose bool) (string, error)

func (*ExperimentalTransparentProxy) Setup added in v1.8.1

type IptablesTranslator

type IptablesTranslator interface {
	// store iptables rules
	// accepts a map of slices, the map key is the iptables table
	// and the slices are the list of the iptables rules in that table
	// returns the generated translated rules as a single string
	StoreRules(rules map[string][]string) (string, error)
}

type TransparentProxy

type TransparentProxy interface {
	// returns the stdout and stderr as string and an error if such has occurred
	Setup(cfg *config.TransparentProxyConfig) (string, error)

	// returns the stdout and stderr as string and an error if such has occurred
	Cleanup(dryRun, verbose bool) (string, error)
}

func DefaultTransparentProxy

func DefaultTransparentProxy() TransparentProxy

Jump to

Keyboard shortcuts

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