Documentation ¶
Index ¶
Constants ¶
View Source
const ( PreRoutingChain = "PREROUTING" PostRoutingChain = "POSTROUTING" OutputChain = "OUTPUT" RavenMarkChain = "RAVEN-MARK-CHAIN" RavenPostRoutingChain = "RAVEN-POSTROUTING" MangleTable = "mangle" NatTable = "nat" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPTablesInterface ¶
type IPTablesInterface interface { NewChainIfNotExist(table, chain string) error ClearAndDeleteChain(table, chain string) error List(table, chain string) ([]string, error) AppendIfNotExists(table, chain string, rulespec ...string) error DeleteIfExists(table, chain string, rulespec ...string) error InsertIfNotExists(table, chain string, pos int, rulespec ...string) error }
func New ¶
func New() (IPTablesInterface, error)
Click to show internal directories.
Click to hide internal directories.