VirtualBox

Opened 16 years ago

Closed 16 years ago

#2932 closed defect (fixed)

2.1.0 NAT code breaks FTP

Reported by: Lawrence Rust Owned by:
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 (2)

tcp_input.diff (990 bytes ) - added by Lawrence Rust 16 years ago.
tcp_subr.diff (1.6 KB ) - added by Lawrence Rust 16 years ago.

Download all attachments as: .zip

Change History (4)

by Lawrence Rust, 16 years ago

Attachment: tcp_input.diff added

by Lawrence Rust, 16 years ago

Attachment: tcp_subr.diff added

comment:1 by Frank Mehnert, 16 years ago

Component: networknetwork/NAT

comment:2 by Frank Mehnert, 16 years ago

Resolution: fixed
Status: newclosed

Should be fixed in 2.1.4.

Note: See TracTickets for help on using tickets.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette