package
0.8.0-dev.2
Repository: https://github.com/datastream/libnetwork.git
Documentation: pkg.go.dev

# Functions

ExistChain checks if a chain exists.
Exists checks if a rule exists.
FirewalldInit initializes firewalld management code.
GetVersion reads the iptables version numbers.
NewChain adds a new chain to ip table.
OnReloaded add callback.
Passthrough method simply passes args through to iptables/ip6tables.
ProgramChain is used to add rules to a chain.
Raw calls 'iptables' system command, passing supplied arguments.
RawCombinedOutput inernally calls the Raw function and returns a non nil error if Raw returned a non nil error or a non empty output.
RawCombinedOutputNative behave as RawCombinedOutput with the difference it will always invoke `iptables` binary.
RemoveExistingChain removes existing chain from the table.

# Constants

Append appends the rule at the end of the chain.
Delete deletes the rule from the chain.
Ebtables point to bridge table.
Filter table is used for filter rules.
Insert inserts the rule at the top of the chain.
IP6Tables point to ipv6 table.
Iptables point ipv4 table.
Mangle table is used for mangling the packet.
Nat table is used for nat translation rules.

# Variables

ErrIptablesNotFound is returned when the rule is not found.

# Structs

ChainError is returned to represent errors during ip table operation.
ChainInfo defines the iptables chain.
Conn is a connection to firewalld dbus endpoint.

# Type aliases

Action signifies the iptable action.
IPV defines the table string.
Table refers to Nat, Filter or Mangle.