During my studies I am having a tough time wrapping my head around something. This is my understanding based on the explanation I read, so it is entirely possible that I just have it entirely wrong.
My current understanding is that with Active FTP, an FTP client send out to port 21. (So my understanding is the source port would be an arbitrary port # and the destination port is port 21).
The FTP server send back with the destination port of the ephemeral port number and a source port of 20.
If the destination port is the same as the client made it when sending it out, why is it that NAT cannot translate it back to the private IP/port and determine the correct device to send the information to.
For example if the client had a socket of 192.168.1.50:10000 and NAT translates that to Public IP:65987, and then the NAT router receives a reply from the FTP server to Public IP:65987, I am not sure why NAT can't translate it back to the correct device even though the source port on the server side changed.
My current understanding is that with Active FTP, an FTP client send out to port 21. (So my understanding is the source port would be an arbitrary port # and the destination port is port 21).
The FTP server send back with the destination port of the ephemeral port number and a source port of 20.
If the destination port is the same as the client made it when sending it out, why is it that NAT cannot translate it back to the private IP/port and determine the correct device to send the information to.
For example if the client had a socket of 192.168.1.50:10000 and NAT translates that to Public IP:65987, and then the NAT router receives a reply from the FTP server to Public IP:65987, I am not sure why NAT can't translate it back to the correct device even though the source port on the server side changed.