D
D
Darksinius2019-03-04 10:13:46
FTP
Darksinius, 2019-03-04 10:13:46

Port forwarding for FTP in Windows 2012 to LAN?

Hello, there was a problem with the FTP setup.
There are:
1) The host machine on Win 2012 R2 is running Hyper-v on which a virtual machine with the same OS is installed
2) A local network is configured between the host machine and the virtual machine
3) An FTP server is installed on the virtual machine in IIS, in the local network from the host machine FTP works
4) The host machine has a white external Ip, you need to transfer FTP configured on the local to the Internet
We made port forwarding to the host machine
netsh interface portproxy add v4tov4 listenport=2780 listenaddress=0.0.0.0 connectaddress=192.168.0.5 connectport=8750 protocol=tcp
rules created in the firewall
when trying to connect gives an error
Status: Connecting to *.*.*.*:2780...
Status: Connection established, waiting for prompt...
Status: Insecure server, does not support FTP over TLS.
Status: Logged in
Status: Getting list of directories...
Status: The server sent a passive response with an undefined address. I'm using an existing server address.
Command: LIST
Response: 150 Opening BINARY mode data connection.
Error: Connection terminated after 20 seconds of inactivity
Error: Failed to get list of directories
I googled about the passive response, do I understand correctly that you still need to forward the port range for the passive mode on the host machine, as well as set this range in the IIS firewall on the virtual machine?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2019-03-04
@feanor7

Can I force active mode? Passive I think will not work in your case.
Also, how did you set up the virtual switch? nat? a bridge would probably be easier.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question