Networking, DNS & TLS
Policy routing
Explain how policy rules run in priority order and select a routing table by source address or fwmark, so a host with two uplinks sends replies out the right link.
What you will be able to do
- Explain how rule priority decides which routing table a packet uses.
- Decide how to test a policy rule with ip route get before sending traffic.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Networking, DNS & TLS
- IPv6 addressingIntermediate · 4 min
Explain how IPv6 addresses are written in full and compressed form, what the three address types are, and why a copied address must be checked against the interface.
- Routing tablesIntermediate · 4 min
Explain how a routing table picks the longest matching prefix, what route types and proto fields show, and how to ask the kernel which route a destination uses.
- NAT and PATIntermediate · 4 min
Explain how NAT and PAT rewrite addresses and ports through a binding table, why inbound access needs a static mapping, and why idle bindings can expire while the link…
- Conntrack table exhaustionIntermediate · 4 min
Explain how the conntrack table tracks each flow, why its timeouts decide how many entries stay, and how to tell a full table from a CPU or memory limit.
- TCP three way handshakeIntermediate · 4 min
Explain the TCP three-way handshake and what each SYN, SYN-ACK and ACK packet carries, and how a one-second pause before a connection can point to a lost SYN.
- TCP retransmissionAdvanced · 4 min
Explain how TCP computes its retransmission timeout from round-trip time and its variation, doubles it after each timeout, and how to measure loss before tuning anything.