FTP forwarding problem :(

2 posts / 0 new
Last post
#1 Thu, 12/27/2007 - 22:39
seba22

FTP forwarding problem :(

Hi,

I have problem.

internet -> main machine -> server ftp

I have forwarded 22 port to 21 on server ftp machine

I'm using AnalogX Port Mapper

When someone try to connect in active mode get error, passive mode - else.

What should i do:

I'm thinking i should open Passive Ports range ( 9980 - 9990 ) ( on linux ) Next, forward 9980 - 9990 -> to ftp machine and open 9980 - 9990 on firewall on main machine

[code:1]---------- Connect to: (2007-12-28 09:30:35) hostname=stxxx.info:22 username=blaxxx startdir= starepro.info=84.1xxx.111 220 FTP Server ready. USER blastxx 331 Password required for blasxx. PASS *********** 230 User blastxx logged in. SYST 215 UNIX Type: L8 FEAT 211-Features: MDTM REST STREAM SIZE 211 End Connect ok! PWD 257 "/" is current directory. Pobierz katalog TYPE A 200 Type set to A PASV 227 Entering Passive Mode (192,168,0,20,39,14). PORT 192,168,0,141,197,122 200 PORT command successful LIST PORT failed, try PASV mode! PASV [/code:1]

Fri, 12/28/2007 - 00:09
Joe
Joe's picture

I'm not sure I understand why you're forwarding port 22 to 21? 22 is ssh. 21 (and 20) are FTP, traditionally.

But, yes, you'll need high ports open for FTP, regardless of whether it's passive or active. (High ports are not just the ones you've mentioned. You need 1024 and above.)

SSH is not subject to these requirements--it operates entirely on port 22.

--

Check out the forum guidelines!

Topic locked