Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Owner Owner Redirect Redirect // DropInvalidPackets when set will enable configuration which should drop // packets in invalid states DropInvalidPackets bool // IPv6 when set will be used to configure iptables as well as ip6tables IPv6 bool // RuntimeOutput is the place where Any debugging, runtime information // will be placed (os.Stdout by default) RuntimeOutput io.Writer // Verbose when set will generate iptables configuration with longer // argument/flag names, additional comments etc. Verbose bool }
func MergeConfigWithDefaults ¶ added in v0.2.0
func (Config) ShouldDropInvalidPackets ¶ added in v0.2.0
ShouldDropInvalidPackets is just a convenience function which can be used in iptables conditional command generations instead of inlining anonymous functions i.e. AppendIf(ShouldDropInvalidPackets, Match(...), Jump(Drop()))
func (Config) ShouldRedirectDNS ¶ added in v0.2.0
ShouldRedirectDNS is just a convenience function which can be used in iptables conditional command generations instead of inlining anonymous functions i.e. AppendIf(ShouldRedirectDNS, Match(...), Jump(Drop()))
type Redirect ¶
type Redirect struct { // NamePrefix is a prefix which will be used go generate chains name NamePrefix string Inbound TrafficFlow Outbound TrafficFlow DNS DNS }
Click to show internal directories.
Click to hide internal directories.