cmd

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildFirewallConfiguration

func BuildFirewallConfiguration(options *RootOptions) (*iptables.FirewallConfiguration, error)

BuildFirewallConfiguration returns an iptables FirewallConfiguration suitable to use to configure iptables.

func NewRootCmd

func NewRootCmd() *cobra.Command

NewRootCmd returns a configured cobra.Command for the `proxy-init` command. TODO: consider moving this to `/proxy-init/main.go`

Types

type RootOptions

type RootOptions struct {
	IncomingProxyPort     int
	OutgoingProxyPort     int
	ProxyUserID           int
	PortsToRedirect       []int
	InboundPortsToIgnore  []string
	OutboundPortsToIgnore []string
	SimulateOnly          bool
	NetNs                 string
	UseWaitFlag           bool
	TimeoutCloseWaitSecs  int
}

RootOptions provides the information that will be used to build a firewall configuration.

Jump to

Keyboard shortcuts

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