Documentation ¶
Index ¶
Constants ¶
View Source
const ( NATTable = "nat" FilterTable = "filter" MangleTable = "mangle" RawTable = "raw" AcceptTarget = "ACCEPT" MasqueradeTarget = "MASQUERADE" MarkTarget = "MARK" ConnTrackTarget = "CT" PreRoutingChain = "PREROUTING" ForwardChain = "FORWARD" PostRoutingChain = "POSTROUTING" )
Variables ¶
This section is empty.
Functions ¶
func MakeChainLine ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) EnsureChain ¶
ensureChain checks if target chain already exists, creates it if not.
func (*Client) EnsureRule ¶
ensureRule checks if target rule already exists, appends it if not.
Click to show internal directories.
Click to hide internal directories.