Apex › Systems & OS

Container bridge networking (veth + bridge + NAT)

How a container actually talks to the network: its own network namespace, a veth pair patching it into a Linux bridge on the host, and a MASQUERADE rule that source-NATs its private IP so it can reach the internet. Send a packet from one container to another (same bridge → direct, no NAT) or out to the internet, and watch the hop-by-hop source→destination. Turn MASQUERADE off and egress strands the private source; move a container to its own bridge and it’s isolated.

More in Systems & OS