Versions in this module Expand all Collapse all v0 v0.1.0 Jul 8, 2015 Changes in this version + const Append + const Delete + const Filter + const Insert + const Mangle + const Nat + var ErrIptablesNotFound = errors.New("Iptables not found") + func Exists(table Table, chain string, rule ...string) bool + func FirewalldInit() error + func OnReloaded(callback func()) + func Passthrough(ipv IPV, args ...string) ([]byte, error) + func Raw(args ...string) ([]byte, error) + func RemoveExistingChain(name string, table Table) error + type Action string + type Chain struct + Bridge string + HairpinMode bool + Name string + Table Table + func NewChain(name, bridge string, table Table, hairpinMode bool) (*Chain, error) + func (c *Chain) Forward(action Action, ip net.IP, port int, proto, destAddr string, destPort int) error + func (c *Chain) Link(action Action, ip1, ip2 net.IP, port int, proto string) error + func (c *Chain) Output(action Action, args ...string) error + func (c *Chain) Prerouting(action Action, args ...string) error + func (c *Chain) Remove() error + type ChainError struct + Chain string + Output []byte + func (e ChainError) Error() string + type Conn struct + type IPV string + const Ebtables + const IP6Tables + const Iptables + type Table string