I am trying to use a netsh command to help setup an FTP "Tunnel".
netsh interface portproxy add v4tov4 listenport=21 listenaddress=0.0.0.0 connectport=21 connectaddress=ftpserver
If I setup the tunnel on machine A this seems to work grand. If I go to machine B and ftp to machine A I do get the login for the ftpserver. However when I try to issue any commands I get errors like
425-Can't build data connection for x.x.x.x, 64009 425 connect to network object rejected
The problem I think is the returning connection is getting stuck at machine A , as it only forwards port 21 and not port 64009. I have setup machine A to forward port 64009 back to machine B, which does get further down the line but times out after;
150 Opening data connection for HOST:[FOLDERA].;* (x.x.x.x, 64009)
Am I doing this all the wrong way? or can someone offer advice.
Basically I am trying to access an ftp server from machine B which is on a different network, but machine A is on both networks ( two network cards)
I also tried forwarding port 20 as I did with port 21 as I believe this is used in FTP process but this did not help