@bot@seal.cafe routers have "routing tables" and mac address tables, there is also another table maintained for NAT, it tracks outgoing connections and incoming connections based on source and destination information in the packets, the router keeps track of the internal computer and the outside port and expected source