OS Manuals

/usr/bin/proxy-init

Init container that sets up the iptables rules to forward traffic into the Linkerd2 sidecar proxy

From linkerd2-proxy-init 2.4.9-r1 (os), captured 2026-11-05 by running proxy-init --help (exit 0). permalink

Also provided by 1 other package version
proxy-init adds a Kubernetes pod to the Linkerd service mesh.

Usage:
  proxy-init [flags]

Flags:
      --firewall-bin-path string           Path to iptables binary
      --firewall-save-bin-path string      Path to iptables-save binary
  -h, --help                               help for proxy-init
      --inbound-ports-to-ignore strings    Inbound ports and/or port ranges (inclusive) to ignore and not redirect to proxy. This has higher precedence than any other parameters.
  -p, --incoming-proxy-port int            Port to redirect incoming traffic (default -1)
      --iptables-mode string               Variant of iptables command to use ("legacy", "nft" or "plain"); overrides --firewall-bin-path and --firewall-save-bin-path
      --ipv6                               Set rules both via iptables and ip6tables to support dual-stack networking (default true)
      --log-format string                  Configure log format ('plain' or 'json') (default "plain")
      --log-level string                   Configure log level (default "info")
      --netns string                       Optional network namespace in which to run the iptables commands
      --outbound-ports-to-ignore strings   Outbound ports and/or port ranges (inclusive) to ignore and not redirect to proxy. This has higher precedence than any other parameters.
  -o, --outgoing-proxy-port int            Port to redirect outgoing traffic (default -1)
  -r, --ports-to-redirect ints             Port to redirect to proxy, if no port is specified then ALL ports are redirected
  -g, --proxy-gid int                      Group ID that the proxy is running under. Any traffic coming from this group will be ignored to avoid infinite redirection loops. (default -1)
  -u, --proxy-uid int                      User ID that the proxy is running under. Any traffic coming from this user will be ignored to avoid infinite redirection loops. (default -1)
      --simulate                           Don't execute any command, just print what would be executed
      --subnets-to-ignore strings          Subnets to ignore and not redirect to proxy. This has higher precedence than any other parameters.
      --timeout-close-wait-secs int        Sets nf_conntrack_tcp_timeout_close_wait
  -w, --use-wait-flag                      Appends the "-w" flag to the iptables commands
Options (19)
OptionDescriptionSource
--firewall-bin-path stringPath to iptables binaryhelp
--firewall-save-bin-path stringPath to iptables-save binaryhelp
-h, --helphelp for proxy-inithelp
--inbound-ports-to-ignore stringsInbound ports and/or port ranges (inclusive) to ignore and not redirect to proxy.help
-p, --incoming-proxy-port intPort to redirect incoming traffic (default -1)help
--iptables-mode stringVariant of iptables command to use ("legacy", "nft" or "plain");help
--ipv6Set rules both via iptables and ip6tables to support dual-stack networking (default true)help
--log-format stringConfigure log format ('plain' or 'json') (default "plain")help
--log-level stringConfigure log level (default "info")help
--netns stringOptional network namespace in which to run the iptables commandshelp
--outbound-ports-to-ignore stringsOutbound ports and/or port ranges (inclusive) to ignore and not redirect to proxy.help
-o, --outgoing-proxy-port intPort to redirect outgoing traffic (default -1)help
-r, --ports-to-redirect intsPort to redirect to proxy, if no port is specified then ALL ports are redirectedhelp
-g, --proxy-gid intGroup ID that the proxy is running under.help
-u, --proxy-uid intUser ID that the proxy is running under.help
--simulateDon't execute any command, just print what would be executedhelp
--subnets-to-ignore stringsSubnets to ignore and not redirect to proxy.help
--timeout-close-wait-secs intSets nf_conntrack_tcp_timeout_close_waithelp
-w, --use-wait-flagAppends the "-w" flag to the iptables commandshelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.