Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Exec = defaultExec
Exec executes given args
Functions ¶
func AddRuleWithRemoval ¶
AddRuleWithRemoval activates given rule
Types ¶
type Rule ¶
type Rule struct {
// contains filtered or unexported fields
}
Rule is a packet filter rule for IPTables.
func (Rule) ApplyArgs ¶
ApplyArgs returns an argument list to be passed to the iptables executable to APPLY the rule.
func (Rule) RemoveArgs ¶
RemoveArgs returns an argument list to be passed to the iptables executable to REMOVE the rule.
Click to show internal directories.
Click to hide internal directories.