503 error when list command is issued

Need help with FileZilla Server? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Post Reply
Message
Author
ajbutch123
500 Command not understood
Posts: 4
Joined: 2015-03-12 22:30

503 error when list command is issued

#1 Post by ajbutch123 » 2015-03-12 22:35

I am trying to use my ftp as a redirect server for an old modern warfare server. Every time a list command is issued it gives me a 503 bad sequence of commands error. Here is my log, and any help would be greatly appreciated.

Code: Select all

(000172)3/12/2015 12:36:06 PM - (not logged in) (xx.xx.xx.xx)> Connected on port 800, sending welcome message...
(000172)3/12/2015 12:36:06 PM - (not logged in) (xx.xx.xx.xx)> 220-FileZilla Server version 0.9.49 beta
(000172)3/12/2015 12:36:06 PM - (not logged in) (xx.xx.xx.xx)> 220-written by Tim Kosse (tim.kosse@filezilla-project.org)
(000172)3/12/2015 12:36:06 PM - (not logged in) (xx.xx.xx.xx)> 220 Please visit https://filezilla-project.org/
(000172)3/12/2015 12:36:07 PM - (not logged in) (xx.xx.xx.xx)> USER Forsaken
(000172)3/12/2015 12:36:07 PM - (not logged in) (xx.xx.xx.xx)> 331 Password required for forsaken
(000172)3/12/2015 12:36:07 PM - (not logged in) (xx.xx.xx.xx)> PASS ********
(000172)3/12/2015 12:36:07 PM - forsaken (xx.xx.xx.xx)> 230 Logged on
(000172)3/12/2015 12:36:07 PM - forsaken (xx.xx.xx.xx)> TYPE I
(000172)3/12/2015 12:36:07 PM - forsaken (xx.xx.xx.xx)> 200 Type set to I
(000172)3/12/2015 12:36:07 PM - forsaken (xx.xx.xx.xx)> PORT 192,168,0,10,197,122
(000172)3/12/2015 12:36:07 PM - forsaken (xx.xx.xx.xx)> 200 Port command successful
(000172)3/12/2015 12:36:07 PM - forsaken (xx.xx.xx.xx)> RETR /cod4/usermaps/mp_surv_villa2r2/mp_surv_villa2r2.iwd
(000172)3/12/2015 12:36:07 PM - forsaken (xx.xx.xx.xx)> 550 File not found
(000172)3/12/2015 12:36:07 PM - forsaken (xx.xx.xx.xx)> CWD /
(000172)3/12/2015 12:36:07 PM - forsaken (xx.xx.xx.xx)> 250 CWD successful. "/" is current directory.
(000172)3/12/2015 12:36:07 PM - forsaken (xx.xx.xx.xx)> CWD cod4
(000172)3/12/2015 12:36:07 PM - forsaken (xx.xx.xx.xx)> 250 CWD successful. "/cod4" is current directory.
(000172)3/12/2015 12:36:07 PM - forsaken (xx.xx.xx.xx)> CWD usermaps
(000172)3/12/2015 12:36:07 PM - forsaken (xx.xx.xx.xx)> 550 CWD failed. "/cod4/usermaps": directory not found.
(000172)3/12/2015 12:36:08 PM - forsaken (xx.xx.xx.xx)> SYST
(000172)3/12/2015 12:36:08 PM - forsaken (xx.xx.xx.xx)> 215 UNIX emulated by FileZilla
(000172)3/12/2015 12:36:08 PM - forsaken (xx.xx.xx.xx)> LIST mp_surv_villa2r2/mp_surv_villa2r2.iwd
(000172)3/12/2015 12:36:08 PM - forsaken (xx.xx.xx.xx)> 503 Bad sequence of commands.
(000172)3/12/2015 12:38:08 PM - forsaken (xx.xx.xx.xx)> 421 Connection timed out.
(000172)3/12/2015 12:38:08 PM - forsaken (xx.xx.xx.xx)> disconnected.
Also, to whoever set the rules that I can't use my gmail or hotmail accounts (which are the only ones I have) to sign up for these forums should BE SHOT IN THE FACE! ITS NOT LIKE I CAN'T GO TO HIDEMYASS AND CREATE A TEMP EMAIL ANYWAY, SO KILL YOURSELF.

Of course I did just get back from having my teeth drilled on, so I'm a little pissed off... but STILL! that's some BS
Last edited by ajbutch123 on 2015-03-13 00:12, edited 1 time in total.

User avatar
botg
Site Admin
Posts: 35558
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: 503 error when list command is issued

#2 Post by botg » 2015-03-12 22:50

Children these days...

gregnk

Re: 503 error when list command is issued

#3 Post by gregnk » 2015-03-12 23:24

First thing is please don't be rude. Gmail, Yahoo and Hotmail/Outlook were blocked to prevent spam. Anyways, your firewall or router might be messing with the connection. See Network Configuration.

User avatar
boco
Contributor
Posts: 26934
Joined: 2006-05-01 03:28
Location: Germany

Re: 503 error when list command is issued

#4 Post by boco » 2015-03-12 23:33

Whatever connected to the server forgot the correct command/reply sequence. LIST and other transfer commands MUST be preceeded by either PORT/EPRT or PASV/EPSV.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

ajbutch123
500 Command not understood
Posts: 4
Joined: 2015-03-12 22:30

Re: 503 error when list command is issued

#5 Post by ajbutch123 » 2015-03-12 23:48

gregnk wrote:First thing is please don't be rude. Gmail, Yahoo and Hotmail/Outlook were blocked to prevent spam. Anyways, your firewall or router might be messing with the connection. See Network Configuration.


First thing, I will be rude if someone makes me jump through unnecessary hoops to sign up to a simple forum. Like I already said, I can go to hidemyass and create as many .temp accounts as I damn well please. So why did you even bring that up? Its stupid to block something everyone can get around anyway.

My router is a linksys e3000 with dd-wrt installed, and to my knowledge doesn't have any kind of a firewall active.
botg wrote:Children these days...
what a useless post... ^
boco wrote:Whatever connected to the server forgot the correct command/reply sequence. LIST and other transfer commands MUST be preceeded by either PORT/EPRT or PASV/EPSV.
Did you read the log? Does it need a PORT and EPRT command, or just port? I don't know how to change the ftp settings on my modern warfare server.

Code: Select all

(000172)3/12/2015 12:36:07 PM - forsaken (xx.xx.xx.xx)> PORT 192,168,0,10,197,122

User avatar
boco
Contributor
Posts: 26934
Joined: 2006-05-01 03:28
Location: Germany

Re: 503 error when list command is issued

#6 Post by boco » 2015-03-13 00:49

I need to be more precise: EACH listing or transfer command MUST be preceded by PORT/EPRT or PASV/EPSV, no matter if that command succeeds or not. The PORT command was for the RETR that immediately followed in the log. For the LIST command later, the client must send another PORT first. Yes, I read the log.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

ajbutch123
500 Command not understood
Posts: 4
Joined: 2015-03-12 22:30

Re: 503 error when list command is issued

#7 Post by ajbutch123 » 2015-03-13 23:31

Okay, so part of my problem was with my folder structure... so I solved that. Now I am getting this error:

Code: Select all

(000013)3/13/2015 19:19:28 PM - forsaken (xx.xx.xx.xx)> 421 Connection timed out.
(000013)3/13/2015 19:19:28 PM - forsaken (xx.xx.xx.xx)> disconnected.
(000014)3/13/2015 19:20:08 PM - forsaken (xx.xx.xx.xx)> 421 Connection timed out.
(000014)3/13/2015 19:20:08 PM - forsaken (xx.xx.xx.xx)> disconnected.
(000015)3/13/2015 19:20:13 PM - (not logged in) (xx.xx.xx.xx)> Connected on port 800, sending welcome message...
(000015)3/13/2015 19:20:13 PM - (not logged in) (xx.xx.xx.xx)> 220 FileZilla Server version 0.9.49 beta
(000015)3/13/2015 19:20:13 PM - (not logged in) (xx.xx.xx.xx)> USER Forsaken
(000015)3/13/2015 19:20:13 PM - (not logged in) (xx.xx.xx.xx)> 331 Password required for forsaken
(000015)3/13/2015 19:20:13 PM - (not logged in) (xx.xx.xx.xx)> PASS ********
(000015)3/13/2015 19:20:13 PM - forsaken (xx.xx.xx.xx)> 230 Logged on
(000015)3/13/2015 19:20:13 PM - forsaken (xx.xx.xx.xx)> TYPE I
(000015)3/13/2015 19:20:13 PM - forsaken (xx.xx.xx.xx)> 200 Type set to I
(000015)3/13/2015 19:20:13 PM - forsaken (xx.xx.xx.xx)> PORT 192,168,0,10,217,195
(000015)3/13/2015 19:20:13 PM - forsaken (xx.xx.xx.xx)> 200 Port command successful
(000015)3/13/2015 19:20:13 PM - forsaken (xx.xx.xx.xx)> RETR /cod4/usermaps/mp_surv_villa2r2/mp_surv_villa2r2.iwd
(000015)3/13/2015 19:20:13 PM - forsaken (xx.xx.xx.xx)> 150 Opening data channel for file download from server of "/cod4/usermaps/mp_surv_villa2r2/mp_surv_villa2r2.iwd"
(000015)3/13/2015 19:20:14 PM - forsaken (xx.xx.xx.xx)> 425 Can't open data connection for transfer of "/cod4/usermaps/mp_surv_villa2r2/mp_surv_villa2r2.iwd"
(000015)3/13/2015 19:22:15 PM - forsaken (xx.xx.xx.xx)> 421 Connection timed out.
(000015)3/13/2015 19:22:15 PM - forsaken (xx.xx.xx.xx)> disconnected.
(000016)3/13/2015 19:25:26 PM - (not logged in) (xx.xx.xx.xx)> Connected on port 800, sending welcome message...
(000016)3/13/2015 19:25:26 PM - (not logged in) (xx.xx.xx.xx)> 220 FileZilla Server version 0.9.49 beta
(000016)3/13/2015 19:25:26 PM - (not logged in) (xx.xx.xx.xx)> USER Forsaken
(000016)3/13/2015 19:25:26 PM - (not logged in) (xx.xx.xx.xx)> 331 Password required for forsaken
(000016)3/13/2015 19:25:26 PM - (not logged in) (xx.xx.xx.xx)> PASS ********
(000016)3/13/2015 19:25:26 PM - forsaken (xx.xx.xx.xx)> 230 Logged on
(000016)3/13/2015 19:25:26 PM - forsaken (xx.xx.xx.xx)> TYPE I
(000016)3/13/2015 19:25:26 PM - forsaken (xx.xx.xx.xx)> 200 Type set to I
(000016)3/13/2015 19:25:26 PM - forsaken (xx.xx.xx.xx)> PORT 192,168,0,10,218,169
(000016)3/13/2015 19:25:26 PM - forsaken (xx.xx.xx.xx)> 200 Port command successful
(000016)3/13/2015 19:25:26 PM - forsaken (xx.xx.xx.xx)> RETR /cod4/usermaps/mp_surv_villa2r2/mp_surv_villa2r2.iwd
(000016)3/13/2015 19:25:26 PM - forsaken (xx.xx.xx.xx)> 150 Opening data channel for file download from server of "/cod4/usermaps/mp_surv_villa2r2/mp_surv_villa2r2.iwd"
(000016)3/13/2015 19:25:28 PM - forsaken (xx.xx.xx.xx)> 425 Can't open data connection for transfer of "/cod4/usermaps/mp_surv_villa2r2/mp_surv_villa2r2.iwd"
This is me trying to join the server and download a map. I did it twice to see if the ports it requested changed and they did. So I guess my question is what range of ports do you recommend forwarding for this? should I forward 0 and 10 too? or just something like 160-300

User avatar
boco
Contributor
Posts: 26934
Joined: 2006-05-01 03:28
Location: Germany

Re: 503 error when list command is issued

#8 Post by boco » 2015-03-14 00:52

1. It depends on the client you use. Some (like the MS ftp.exe) can not be configured at all, making them useful only for LAN.
2. Active (PORT) mode has the data ports on the client side, means the client has to forward them. This works only if the client is configurable (see 1.).
3. The client you use sends the wrong IPv4 (unless you connect in LAN only). Needs to be configured to send the public IPv4 (see 1. again).
4. A good range is at least 100 ports in the 50000 or higher region. Those are usually free ports. Region below port 1025 SHOULD NEVER be used.

That being said, a good, configurable FTP client will support Passive mode, where all port forwarding and configuration is done at the server side. For automated, scripted operation a commandline client like lftp is recommended.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

ajbutch123
500 Command not understood
Posts: 4
Joined: 2015-03-12 22:30

Re: 503 error when list command is issued

#9 Post by ajbutch123 » 2015-03-14 05:50

Yes, but I am using call of duty 4 modern warfare (the client) to connect to my server. My server then redirects me to the ftp server to grab the mod/map I am running on the server. Its built into the game, and I know of no way to change it. I'm guessing it's in active mode?
boco wrote: 4. A good range is at least 100 ports in the 50000 or higher region. Those are usually free ports. Region below port 1025 SHOULD NEVER be used.
Haha, yeah... I should have remembered that :oops: I seem to remember reading something about privileged ports? xD

Post Reply