ftp on different port than 21

From: Alan (alan_at_lasere.com)
Date: 10/29/03


Date: Wed, 29 Oct 2003 16:13:10 -0500

I have two FTP servers begind a firewall. I have the firewall set to
forward traffic on prot 41279 to the second server. In that server I have
modifed the services to provide FTP service on the port. Inside on the
local LAN, this works fine. When I try to connect through the firewall I
get the following messages, and then it tries to reconnect. Ihave modified
the IP address for obvious reasons.

I notice in the /etc/services file that port 21 is ftp and port 20 is
ftp-data. I setup port 41279 as ftp2 and port 41278 as ftp2-data. In the
/etc/inetd.conf file I connected ftp2 to ftpd. The remainder of the
parameters are the same as on the default ftp line in inetd.conf.

Does anybody know what I am missing.

The firewall is a SonicWall, and there is no VPN associated at the present
time. Eventually there will be a VFP involved, but I need to get this
running without the VFP for the conversion.

STATUS:> Connecting to "xxx.xxx.xxx.xxx" on port 41279.
          220-
          220 fwnco FTP server (Version 2.1WU(1)) ready.
STATUS:> Connected. Logging into the server
COMMAND:> USER root
          331 Password required for root.
COMMAND:> PASS *****
          230 User root logged in.
STATUS:> Login successful
COMMAND:> FEAT
          500 'FEAT': command not understood.
COMMAND:> REST 100
          350 Restarting at 100. Send STORE or RETRIEVE to initiate
transfer.
COMMAND:> REST 0
          350 Restarting at 0. Send STORE or RETRIEVE to initiate transfer.
STATUS:> Server supports resume
COMMAND:> PWD
          257 "/" is current directory.
COMMAND:> CWD /
          250 CWD command successful.
COMMAND:> TYPE A
          200 Type set to A.
COMMAND:> PORT 10,0,1,53,11,98
          200 PORT command successful.
COMMAND:> LIST
ERROR:> Socket error: Unknown socket error (0)
ERROR:> Socket error: Unknown socket error (0)
STATUS:> Error sending command "LIST". Reconnecting (send attempt 2)...



Relevant Pages

  • Re: Software Firewall
    ... All 65535 scanned ports on ghotto.phx.az.us are: ... There is no firewall on ghotto. ... not running a web server... ... Even windoze supposedly has that command, ...
    (comp.security.firewalls)
  • Re: Windows 2003 Help
    ... On Old server stopped the FIREWALL ... So I am now thinking it is a DNs issue on the new server DNS setup. ... What's with repadmin /showrepl command output? ...
    (microsoft.public.windows.server.general)
  • Re: Receiving 220 ********** on telnet to port 25
    ... I have an Exhange 2003 server behind a Cisco PIX-501 6.3 firewall. ... When I run the command "telnet mail.domain.com 25" I get the ...
    (microsoft.public.exchange.connectivity)
  • Re: [opensuse] vsftpd problem
    ... I have two suse 10.1 servers and the target server, is running vsftp, ports 20,21 are open from the firewall, I can ftp into from my desktop computer using command line ftp, but from the other server which also has port 20,21 open, I can login, but if I try to run any command as simple as a dir or ls, I get the following: ... I suspect that your firewall is not ftp aware. ...
    (SuSE)
  • Re: cannot send emails
    ... Which antivirus are you using? ... The connection to the server has failed. ... Subject 'Fw: Your PC MasterCard statement is available.', Account: 'pophm.sympatico.ca', Server: 'smtphm.sympatico.ca', Protocol: SMTP, Port: 25, Secure: Yes, Socket Error: 10060, Error Number: 0x800CCC0E ...
    (microsoft.public.windows.vista.mail)