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{}
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
Click to show internal directories.
Click to hide internal directories.