Versions in this module Expand all Collapse all v0 v0.2.0 Jun 17, 2022 v0.1.0 Dec 16, 2021 Changes in this version + const ChainForward + const ChainInput + const ChainOutput + const ChainPostrouting + const ChainPrerouting + const PolicyAccept + const PolicyDrop + const PolicyReject + const PolicyReturn + const ProtocolIPv4 + const ProtocolIPv6 + const ProtocolTCP + const ProtocolUDP + const TableFilter + const TableMangle + const TableNAT + const TableRaw + func NF_ADD(m v1.Match, a v1.Action, chain string, buffer *bytes.Buffer, args ...string) + func NF_DEL(m v1.Match, a v1.Action, chain string, buffer *bytes.Buffer, args ...string) + type Balance struct + Destination net.IP + type CTSTATE string + const CTSTATE_ESTABLISHED + const CTSTATE_NEW + const CTSTATE_RELATED + type ChainName string + type ConnMark struct + RestoreMark string + SaveMark string + SetMark string + type Dnat struct + Destination string + type FlushFlag bool + const FlushTables + const NoFlushTables + type IPV4Interface interface + func NewIPV4() IPV4Interface + type IPV6Interface interface + func NewIPV6() IPV6Interface + type Interface interface + DeleteChain func(table TableName, chain ChainName) error + DeleteRule func(table TableName, chain ChainName, args ...string) error + EnsureChain func(table TableName, chain ChainName) (bool, error) + EnsureRule func(position RulePosition, table TableName, chain ChainName, args ...string) (bool, error) + FlushChain func(table TableName, chain ChainName) error + GetChainLines func(table TableName, bytes []byte) map[ChainName][]byte + HasRandomFully func() bool + IsIPv6 func() bool + L3Protocol func() L3Protocol + Monitor func(canary ChainName, tables []TableName, reloadFunc func(), ...) + Restore func(table TableName, data []byte, flush FlushFlag, counters RestoreCountersFlag) error + RestoreAll func(data []byte, flush FlushFlag, counters RestoreCountersFlag) error + SaveInto func(table TableName, buffer *bytes.Buffer) error + type L3Protocol string + type L4Protocol string + type Mark struct + MarkValue uint32 + type Masquerade struct + Port string + func (m *Masquerade) EnsurePort() string + type Match struct + Destination net.IP + InInterface string + OutInterface string + Source net.IP + type Option struct + type Policy string + type RestoreCountersFlag bool + const NoRestoreCounters + const RestoreCounters + type RulePosition string + const Append + const Prepend + type Snat struct + Source string + func (s *Snat) EnsureSource() string + type TableName string + type Target struct + Balance Balance + ConnMark ConnMark + Dnat Dnat + Mark Mark + Masquerade Masquerade + Snat Snat + type TargetCommand string + const BALANCE + const CONNMARK + const DNAT + const MARK + const MASQUERADE + const SNAT