Documentation
¶
Index ¶
- func CreateIP4Chain(table, chain string)
- func CreateIP6Chain(table, chain string)
- func DeleteIP4Tables(rules []IPTablesRule) error
- func DeleteIP6Tables(rules []IPTablesRule) error
- func SetupAndEnsureIP4Tables(rules []IPTablesRule, resyncPeriod int)
- func SetupAndEnsureIP6Tables(rules []IPTablesRule, resyncPeriod int)
- type IPTables
- type IPTablesError
- type IPTablesRestore
- type IPTablesRestoreRuleSpec
- type IPTablesRestoreRules
- type IPTablesRule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateIP4Chain ¶ added in v0.20.0
func CreateIP4Chain(table, chain string)
func CreateIP6Chain ¶ added in v0.20.0
func CreateIP6Chain(table, chain string)
func DeleteIP4Tables ¶ added in v0.19.0
func DeleteIP4Tables(rules []IPTablesRule) error
DeleteIP4Tables delete specified iptables rules
func DeleteIP6Tables ¶ added in v0.15.0
func DeleteIP6Tables(rules []IPTablesRule) error
DeleteIP6Tables delete specified iptables rules
func SetupAndEnsureIP4Tables ¶ added in v0.19.0
func SetupAndEnsureIP4Tables(rules []IPTablesRule, resyncPeriod int)
func SetupAndEnsureIP6Tables ¶ added in v0.15.0
func SetupAndEnsureIP6Tables(rules []IPTablesRule, resyncPeriod int)
Types ¶
type IPTables ¶ added in v0.9.1
type IPTables interface { AppendUnique(table string, chain string, rulespec ...string) error ChainExists(table, chain string) (bool, error) ClearChain(table, chain string) error Delete(table string, chain string, rulespec ...string) error Exists(table string, chain string, rulespec ...string) (bool, error) }
type IPTablesError ¶ added in v0.14.0
type IPTablesRestore ¶ added in v0.19.0
type IPTablesRestore interface { // ApplyWithoutFlush apply without flush chains ApplyWithoutFlush(rules IPTablesRestoreRules) error }
IPTablesRestore wrapper for iptables-restore
func NewIPTablesRestoreWithProtocol ¶ added in v0.19.0
func NewIPTablesRestoreWithProtocol(protocol iptables.Protocol) (IPTablesRestore, error)
NewIPTablesRestoreWithProtocol build new IPTablesRestore for supplied proto
type IPTablesRestoreRuleSpec ¶ added in v0.19.0
type IPTablesRestoreRuleSpec []string
IPTablesRestoreRuleSpec represents one rule spec delimited by space
type IPTablesRestoreRules ¶ added in v0.19.0
type IPTablesRestoreRules map[string][]IPTablesRestoreRuleSpec
IPTablesRestoreRules represents iptables-restore table block
type IPTablesRule ¶ added in v0.9.1
type IPTablesRule struct {
// contains filtered or unexported fields
}
func ForwardRules ¶ added in v0.9.1
func ForwardRules(flannelNetwork string) []IPTablesRule
func MasqIP6Rules ¶ added in v0.15.0
func MasqIP6Rules(ipn ip.IP6Net, lease *subnet.Lease) []IPTablesRule
Click to show internal directories.
Click to hide internal directories.