Networking MOC
Hub for how traffic finds its way: addressing, overlays, name resolution, remote access and firewalls, mostly seen from a homelab.
Core concepts
Overlays & remote access
- Overlay Networks Encapsulate Pod Traffic Inside Node-to-Node Packets: underlay vs overlay, VXLAN, MTU and firewall pitfalls.
- A Subnet Router Gives Remote Access to a LAN Without Opening Inbound Ports: mesh VPNs, Tailscale subnet routers, access rules.
- Multicast Discovery Stops at the Pod Overlay, So DLNA Servers Need hostNetwork: why discovery protocols don't cross an overlay.
Addressing, ARP & DNS
- MetalLB Layer 2 Mode Fails Over a Service IP, It Does Not Spread Traffic: ARP, gratuitous ARP and Service IP pools.
- Pods Inherit the Node's DNS Resolvers, Including Any ISP Blocklist: resolver inheritance, DNS sinkholing,
digcomparisons. - A Highly Available Control Plane Needs a Virtual IP That No Single Node Owns: a virtual IP announced by ARP, and flushing stale entries.
- Pods Should Call Each Other by Service Name, Not Through the Ingress: cluster DNS names vs ingress host names, and the Service port.
- Linux Reads the hosts File Before DNS Because nsswitch.conf Lists files First: NSS lookup order,
/etc/hostsbefore DNS,getent hoststo see what apps get.
Load balancing, proxies & latency
- Layer 4 Load Balancers Route Connections, Layer 7 Load Balancers Route Requests: IPs and ports vs host names and paths.
- One Shared Reverse Proxy Can Route Many Compose Projects by Host Name: one proxy on 80/443 for many projects.
- An App Behind a TLS-Terminating Proxy Builds http URLs Unless It Trusts Forwarded Headers:
X-Forwarded-*headers and whom to trust. - An API Gateway Enforces Authentication, Rate Limits and Usage Analytics Before Requests Reach the Backend: authentication, rate limiting, analytics and developer portals at one layer-7 entry point; backends reachable only through it.
- More Bandwidth Does Not Lower Latency, Only Shorter Distance Does: distance, round trips, CDNs.
Runbooks (05 - SOPs & Manuals/)
- Set a Static IP Address on Debian with ifupdown:
/etc/network/interfaces, staying out of the DHCP range. - Allow Web Traffic Through ufw Without Locking Out SSH: default deny, SSH first, Docker's bypass.
- Linux CLI Cheat Sheet:
ip -br addrand friends.
Related maps
- Kubernetes MOC: where most of these networks run.
- Docker and Container Security MOC: container port exposure.
References
- RFC 826: An Ethernet Address Resolution Protocol - ARP.
- RFC 1034: Domain Names - Concepts and Facilities - DNS resolution.