cli

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cidr

type Cidr struct {
	Hdr    dns.RR_Header
	IP     net.IP
	Prefix int
}

func (*Cidr) Header

func (c *Cidr) Header() *dns.RR_Header

func (*Cidr) String

func (c *Cidr) String() string

type Config

type Config struct {
	// ForwardMode bool
	// MasqMode    bool
	// SNatMode    bool
	ChainName      string
	NoFinalDrop    bool
	FirstRule      bool
	AlternatePath  string
	AlternateForce bool // default false override AlternatePath
	SrcPath        string
	IpTablesType   string // empty means system -- nft or legacy default nft
	DisableIPv4    bool   // default false
	DisableIPv6    bool   // default false

	Targets []Target
	// contains filtered or unexported fields
}

func GetConfig

func GetConfig(log *zerolog.Logger) (Config, []error)

type Port

type Port struct {
	Port  []string
	Proto string
}

type Target

type Target struct {
	Subjects    []des.Subject
	Ports       []Port
	NonStateful bool
	Interface   struct {
		Input  *string
		Output *string
	}
	Protos  []string
	Snat4   *string
	Snat6   *string
	Masq    *string
	Forward *string
}

Jump to

Keyboard shortcuts

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