Timeline for During the lifecycle of "iptables", in which step, will kernel take advantage of "route table"?
Current License: CC BY-SA 4.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 12 at 16:08 | comment | added | Magnus | @dirkt Thanks for a really helpful post. Quick follow-up: You say iptables should not be used for routing, but is that not exactly what the nat table does with DNAT, i.e. translates the destination to another IP? | |
| Apr 4, 2022 at 15:35 | comment | added | dirkt | @user10489 exactly, so the whole "route" step in this case also includes the decision "is this for a local interface, or do I need to forward it", which is included in the "where" question. So the two "route" steps are not the same. | |
| Apr 4, 2022 at 11:29 | comment | added | user10489 | Input routing is looking at "does this packet belong to this host" and "are any applications listening on this source address and source port", so if it is using the routing tables, it's not using it the same way. | |
| Apr 4, 2022 at 7:15 | vote | accept | Ryan Lyu | ||
| Apr 4, 2022 at 7:15 | comment | added | Ryan Lyu | so you are saying the Linux route table will be used on both highlighted steps in the diagram, am I understanding correctly? | |
| Apr 4, 2022 at 6:19 | history | answered | dirkt | CC BY-SA 4.0 |