Ticket #2932 (closed defect: fixed)
2.1.0 NAT code breaks FTP
|Reported by:||lawrencerust||Owned by:|
|Version:||VirtualBox 2.1.0||Keywords:||NAT FTP|
The latest 2.1.0 NAT code doesn't translate FTP PORT or PASV commands.
- When an FTP client running in a guest sends a PORT command to a remote FTP server, the command must be translated to replace the guest's IP address with that of the host.
- When an FTP server running in a guest replies to a PASV command, the response must be translated to replace the guest's IP address with that of the host.
The changes on SLiRP code from 2.0 to 2.1 prevent these translations. In addition the code in 2.0 incorrectly translates the IP address, using the host's NAT address rather than its real network address. The attached diffs fix these problems.