bick2000
asked on
FTP Passive Mode on Different Port
Hey everyone! I'm having a little problem and was wondering if anyone can help.
Here's what I have set up, i have an FTP on port 21 that works excellent. Its Passive, so after connecting, it connects to a port in the 24XXX range. I wanted a seperate FTP to run off of port 1773. When I connect to that port, it logs in and everything, but then creates a PASV command using a LOCAL ip.
It connects and authenticates to 267.282.274.43:1773 then says this:
COMMAND:> PASV
227 Entering Passive Mode (192,161,0,9,13,206).
COMMAND:> LIST
STATUS:> Connecting FTP data socket 192.161.0.9:3534...
How can i get it to create a passive connection using the EXTERNAL ip? Again, the FTP on port 21 creates a passive connection (using PASV command) using the EXTERNAL ip. Why does it change when i try to change the port?
Thank you!
Here's what I have set up, i have an FTP on port 21 that works excellent. Its Passive, so after connecting, it connects to a port in the 24XXX range. I wanted a seperate FTP to run off of port 1773. When I connect to that port, it logs in and everything, but then creates a PASV command using a LOCAL ip.
It connects and authenticates to 267.282.274.43:1773 then says this:
COMMAND:> PASV
227 Entering Passive Mode (192,161,0,9,13,206).
COMMAND:> LIST
STATUS:> Connecting FTP data socket 192.161.0.9:3534...
How can i get it to create a passive connection using the EXTERNAL ip? Again, the FTP on port 21 creates a passive connection (using PASV command) using the EXTERNAL ip. Why does it change when i try to change the port?
Thank you!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Only ways around it would be to use a different non-RFC compliant FTP serverthat allows you to hardcode the 227 response or to get a different firewall.
Sucks, but this is happening more and more often with firewalls and NAT devices springing up everywhere.....
Dave Dietz
Sucks, but this is happening more and more often with firewalls and NAT devices springing up everywhere.....
Dave Dietz
ASKER
ok thanks for the help
ASKER
Thanks,
Bick