iptables

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Provider

func Provider() *schema.Provider

Provider iptables for terraform.

Types

type Client

type Client struct {
	HTTPS      bool
	Insecure   bool
	IPv6       bool
	Port       int
	FirewallIP string
	Logname    string
	Login      string
	Password   string
	AllowedIPs []interface{}
}

Client = provider configuration.

func NewClient

func NewClient(ctx context.Context, c *Config, login, password string) (*Client, error)

NewClient configure.

type Config

type Config struct {
	// contains filtered or unexported fields
}

Config provider.

func (*Config) Client

func (c *Config) Client(ctx context.Context) (*Client, diag.Diagnostics)

Client configures with Config.

type Rule

type Rule struct {
	Except    bool
	Fragment  bool
	Notrack   bool
	Action    string
	State     string
	Icmptype  string
	Chain     string
	Proto     string
	IfaceIn   string
	IfaceOut  string
	Iface     string
	IPSrc     string
	IPDst     string
	IPNat     string
	Sports    string
	Dports    string
	Tcpflags1 string
	Tcpflags2 string
	Position  string
	NthEvery  string
	NthPacket string
	Logprefix string
	Tcpmss    string
}

Rule struc for generate iptables line.

Jump to

Keyboard shortcuts

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