Versions in this module Expand all Collapse all v0 v0.4.5 Dec 16, 2019 v0.4.2 Jun 27, 2019 Changes in this version + type Error struct + func (e *Error) Error() string + func (e *Error) ExitStatus() int + func (e *Error) IsNotExist() bool + type IPTables struct + func New() (*IPTables, error) + func NewWithProtocol(proto Protocol) (*IPTables, error) + func (ipt *IPTables) Append(table, chain string, rulespec ...string) error + func (ipt *IPTables) AppendUnique(table, chain string, rulespec ...string) error + func (ipt *IPTables) ChangePolicy(table, chain, target string) error + func (ipt *IPTables) ClearChain(table, chain string) error + func (ipt *IPTables) Delete(table, chain string, rulespec ...string) error + func (ipt *IPTables) DeleteChain(table, chain string) error + func (ipt *IPTables) Exists(table, chain string, rulespec ...string) (bool, error) + func (ipt *IPTables) GetIptablesVersion() (int, int, int) + func (ipt *IPTables) HasRandomFully() bool + func (ipt *IPTables) Insert(table, chain string, pos int, rulespec ...string) error + func (ipt *IPTables) List(table, chain string) ([]string, error) + func (ipt *IPTables) ListChains(table string) ([]string, error) + func (ipt *IPTables) ListWithCounters(table, chain string) ([]string, error) + func (ipt *IPTables) NewChain(table, chain string) error + func (ipt *IPTables) ParseStat(stat []string) (parsed Stat, err error) + func (ipt *IPTables) Proto() Protocol + func (ipt *IPTables) RenameChain(table, oldChain, newChain string) error + func (ipt *IPTables) Stats(table, chain string) ([][]string, error) + func (ipt *IPTables) StructuredStats(table, chain string) ([]Stat, error) + type Protocol byte + const ProtocolIPv4 + const ProtocolIPv6 + type Stat struct + Bytes uint64 + Destination *net.IPNet + Input string + Opt string + Options string + Output string + Packets uint64 + Protocol string + Source *net.IPNet + Target string + type Unlocker interface + Unlock func() error