VirtualBox

Ticket #2932 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

2.1.0 NAT code breaks FTP

Reported by: lawrencerust Owned by:
Priority: major Component: network/NAT
Version: VirtualBox 2.1.0 Keywords: NAT FTP
Cc: Guest type: other
Host type: Linux

Description

The latest 2.1.0 NAT code doesn't translate FTP PORT or PASV commands.

  1. 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.
  1. 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.

Attachments

tcp_input.diff Download (990 bytes) - added by lawrencerust 5 years ago.
tcp_subr.diff Download (1.6 KB) - added by lawrencerust 5 years ago.

Change History

Changed 5 years ago by lawrencerust

Changed 5 years ago by lawrencerust

comment:1 Changed 5 years ago by frank

  • Component changed from network to network/NAT

comment:2 Changed 5 years ago by frank

  • Status changed from new to closed
  • Resolution set to fixed

Should be fixed in 2.1.4.

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use