iptables-init

command
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2026 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command iptables-init installs per-pod NAT rules that redirect outbound TCP traffic on ports 80 and 443 to the paddock-proxy sidecar listening on :15001. Transparent mode, ADR-0013 §7.2.

Runs as a regular (not native) init container with CAP_NET_ADMIN. Exits 0 once the rules are installed (idempotent) — the kubelet then drops NET_ADMIN and starts the rest of the pod. The rules survive for the life of the pod netns.

Exclusions:

  • Traffic owned by any UID in --bypass-uids is RETURN'd. The list must include the proxy UID (1337) plus any sidecar that sends egress the proxy should not intercept: adapter (1338), collector (1339). F-20 / Phase 2h Theme 4.
  • Loopback (127.0.0.0/8) is RETURN'd so the proxy can talk to its own probes / loopback services without looping.
  • RFC1918 + CGNAT RETURN rules were removed in Phase 2h Theme 4 (F-20): agent-originated traffic to in-cluster destinations (broker ClusterIP, kube-apiserver, co-tenant Pod IPs) now gets REDIRECTed to the proxy and enforced via BrokerPolicy.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL