package
1.33.0-alpha.2
Repository: https://github.com/kubernetes/kubernetes.git
Documentation: pkg.go.dev
# Functions
ExtractLines extracts the -count and +count data from the lineNum row of lines and return NOTE: lines start from line 1.
GetChainsFromTable parses iptables-save data to find the chains that are defined.
IsNotFoundError returns true if the error indicates "not found".
MakeChainLine return an iptables-save/restore formatted chain line given a Chain.
New returns a new Interface which will exec iptables.
# Constants
Append is the append flag for iptable.
ChainForward used for the packets for another NIC.
ChainInput used for incoming packets.
ChainOutput used for the packets going out from local.
ChainPostrouting used for source NAT in nat table.
ChainPrerouting used for DNAT (destination NAT) in nat table.
FlushTables a boolean true constant for option flag FlushFlag.
LockfilePath14x is the iptables 1.4.x lock file acquired by any process that's making any change in the iptable rule.
LockfilePath16x is the iptables 1.6.x lock file acquired by any process that's making any change in the iptable rule.
NoFlushTables a boolean false constant for option flag FlushFlag.
NoRestoreCounters a boolean false constant for the option flag RestoreCountersFlag.
Prepend is the insert flag for iptable.
ProtocolIPv4 represents ipv4 protocol in iptables.
ProtocolIPv6 represents ipv6 protocol in iptables.
RestoreCounters a boolean true constant for the option flag RestoreCountersFlag.
TableFilter represents the built-in filter table.
TableMangle represents the built-in mangle table.
TableNAT represents the built-in nat table.
WaitIntervalString a constant for specifying the wait interval flag.
WaitIntervalUsecondsValue a constant for specifying the default wait interval useconds.
WaitSecondsValue a constant for specifying the default wait seconds.
WaitString a constant for specifying the wait flag.
# Variables
MinCheckVersion minimum version to be checked Versions of iptables less than this do not support the -C / --check flag (test whether a rule exists).
RandomFullyMinVersion is the minimum version from which the --random-fully flag is supported, used for port mapping to be fully randomized.
WaitIntervalMinVersion a minimum iptables versions supporting the wait interval useconds.
WaitMinVersion a minimum iptables versions supporting the -w and -w<seconds> flags.
WaitRestoreMinVersion a minimum iptables versions supporting the wait restore seconds.
WaitSecondsMinVersion a minimum iptables versions supporting the wait seconds.
# Interfaces
Interface is an injectable interface for running iptables commands.
ParseError records the payload when iptables reports an error parsing its input.
# Type aliases
Chain represents the different rules.
FlushFlag an option flag for Flush.
Protocol defines the ip protocol either ipv4 or ipv6.
RestoreCountersFlag is an option flag for Restore.
RulePosition holds the -I/-A flags for iptable.
Table represents different iptable like filter,nat, mangle and raw.