package
0.16.2
Repository: https://github.com/hashicorp/consul.git
Documentation: pkg.go.dev

# Functions

Setup will set up iptables interception and redirection rules based on the configuration provided in cfg.
SetupWithAdditionalRules will set up iptables interception and redirection rules based on the configuration provided in cfg.

# Constants

No description provided by the author
DNSChain is the chain to redirect outbound DNS traffic to Consul DNS.
ProxyInboundChain is the chain to intercept inbound traffic.
ProxyInboundRedirectChain is the chain to redirect inbound traffic to the proxy.
ProxyOutputChain is the chain to intercept outbound traffic.
ProxyOutputRedirectChain is the chain to redirect outbound traffic to the proxy.

# Structs

Config is used to configure which traffic interception and redirection rules should be applied with the iptables commands.

# Interfaces

Provider is an interface for executing iptables rules.

# Type aliases

AdditionalRulesFn can be implemented by the caller to add environment specific rules (like ECS) that needs to be executed for traffic redirection to work properly.