iptables

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Provider

func Provider() terraform.ResourceProvider

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(firewallIP string, firewallPortAPI int, allowedIps []interface{},
	https bool, insecure bool,
	logname string, login string, password string,
	ipv6 bool, noAddDefaultDrop bool) (*Client, error)

NewClient configure.

type Config

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

Config provider.

func (*Config) Client

func (c *Config) Client() (*Client, error)

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