grokking NAT and packet mangling in linux
Source: Imgur
Imagine a house full of devices connected to your Wi-Fi network. From any device, try finding your public IP by visiting https://www.whatismyip.com/. The IPv4 address field should be the same for all devices. This is the IP provided by your Internet Service Provider (ISP) to your router, which acts as a gateway for your internet.
So what's happening here? If the IPv4 address is the same, how is the router able to differentiate between the devices? Why can't we just assign a unique ...
Read more at vivekn.dev