iptables_actions

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Forward

func Forward(add_or_remove string, zlog *zerolog.Logger, ipChain iptables.Chain, ipTable iptables.Table, ip string, target *cli.Target, ipt iptables.Interface, jump []string) (errs []error)

Types

type IpTable

type IpTable struct {
	Protocol iptables.Protocol
	Execer   exec.Interface
	IpTable  iptables.Interface
	FWD      IpTableChain
	NAT      IpTableChain
}

type IpTableChain

type IpTableChain struct {
	Table     iptables.Table
	Chain     iptables.Chain
	BaseChain iptables.Chain
}

type IpTables

type IpTables struct {
	IpV4 *IpTable
	IpV6 *IpTable
}

func InitIPTables

func InitIPTables(zlog *zerolog.Logger, config *cli.Config) (*IpTables, error)

type StringArrayBuilder

type StringArrayBuilder struct {
	Out []string
}

func NewStringArrayBuilder

func NewStringArrayBuilder() *StringArrayBuilder

func (*StringArrayBuilder) Add

func (sab *StringArrayBuilder) Add(strs ...string) *StringArrayBuilder

Jump to

Keyboard shortcuts

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