Page 1 of 1

Network attached as NAT: how to FTP from guest in ACTIVE mode?

Posted: 22. Jul 2016, 07:28
by Djee
Hello,

[tl;dr: how can we start an active client FTP connection from guest to host when network attached as NAT?]

Here is the thing.
For some host hardware Ethernet problems, we are very happy with Network attached as NAT. Connectivity is fine.
However, in guest, from Eclipse/CDT with some remote development plugins, an active FTP client is started to upload a C app before running/debugging it on a remote target.
No way (as far as we deeply searched) to make FTP passive.
Active FTP implies that, through the PORT FTP command, an ephemeral connection from host to guest is made.
Hence the problem: no way to open random ephemeral ports from host to guest. A reason active FTP is more and more deprecated but some implementations are stubborn... :D
Searching FTP client through NAT on the Web, you can see some advanced NAT servers handle this through tracking PORT command and opening its port dynamically.
Does VirtualBox support this feature in any way? If so, how?

Thank you for your attention and support,
gg/