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" )
View Source
const (
XtablesLockFilePath = "/var/run/xtables.lock"
)
Variables ¶
This section is empty.
Functions ¶
func Lock ¶ added in v0.10.2
Lock acquires the provided file lock. It's thread-safe. It will block until the lock is acquired or the timeout is reached.
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.