LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-05-2004, 04:00 PM   #1
JCdude2525
Member
 
Registered: Mar 2004
Location: Berlinsville
Distribution: Slackware/Fedora
Posts: 103

Rep: Reputation: 15
Arrow ProFTPd- "Illegal PORT Command"


Hello-

I am running ProFTPd for an FTP server. The version is 1.2.10. For some reason, you can't view any files after you logon from a computer out of my network. It says somthing about an illegal port command. No other FTP servers that I tried works either. I think it has somthing to do with the router. It is a Linksys BEFW11S4, it's wireless. The computer where the server runs uses a wireless connection. The port that the server runs on is 25001. Here is a command line output(from the linux server)-

Code:
jim@goldeneye:~$ ftp ftp.badger.homelinux.org 25001
Connected to badger.homelinux.org.
220 ProFTPD 1.2.10 Server (Badger FTP Server) [192.168.1.100]
Name (ftp.badger.homelinux.org:jim): jim
331 Password required for jim.
Password:
230 User jim logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> dir
500 Illegal PORT command
ftp: bind: Address already in use
ftp> dir
500 Illegal PORT command
ftp> close
221 Goodbye.
ftp> quit
jim@goldeneye:~$
So basically, you can't view any files after you log in, using the domain or my internet IP
address. But if you log in through a local IP, you get this(from one of my windows computers)-

Code:
C:\>ftp
ftp> open
To 192.168.1.100 25001
Connected to 192.168.1.100.
220 ProFTPD 1.2.10 Server (Badger FTP Server) [192.168.1.100]
User (192.168.1.100:none): jim
331 Password required for jim.
Password:
230 User jim logged in.
ftp> dir
200 PORT command successful
150 Opening ASCII mode data connection for file list
drwx------   3 jim      users         136 Nov  3 02:37 Desktop
drwx------   7 jim      users         520 Nov  4 22:27 Mail
drwxr-xr-x  11 jim      users         296 Nov  5 01:19 var
-rw-r--r--   1 jim      users          49 Nov  4 21:28 wireless.log
226 Transfer complete.
ftp: 254 bytes received in 0.00Seconds 254000.00Kbytes/sec.
ftp> close
221 Goodbye.
ftp> quit

C:\>
For those of you who noticed, there was ()'s between : and none on the windows one,
but it made a smiley so I took it out.
I'd like to get this fixed soon. I heard somewhere about a NAT firewall, I think my router my have one, so how would I turn it off?

Thanks

-Jim
 
Old 11-05-2004, 04:16 PM   #2
gabriele_101
Member
 
Registered: Oct 2001
Location: CAMBRIDGE, MA USA
Distribution: RH9 Kernel 2.4.20-18.9
Posts: 69

Rep: Reputation: 15
Almost certainly a router issue. Is your router configured for DHCP or do you assign the IP?

It seems that either the NAT on the router is messed up, or the router and some other node on the routers net/subnet are both trying to use the same IP.

Do you get any issues while trying to connect to any other port on the server?

I'm guessing about some stuff here, so people can certainly correct me if needed.

-Gabriele
 
Old 11-05-2004, 04:29 PM   #3
JCdude2525
Member
 
Registered: Mar 2004
Location: Berlinsville
Distribution: Slackware/Fedora
Posts: 103

Original Poster
Rep: Reputation: 15
Actually, an HTTP server works fine. The router is set to Static IP, so you have to manually configure an IP address on each computer. My network only has 3-4 computers in it. The forth is a node in my cluster on a different router, and it doesn't nessisarly have internet access. About 2 months ago, with the same router, I think I was able to run an FTP server without port command issues. Then, when I started to use the wireless instead of wired(on the same router), is when things got messed up. So, did this help at all?

-Jim
 
Old 11-05-2004, 04:48 PM   #4
gabriele_101
Member
 
Registered: Oct 2001
Location: CAMBRIDGE, MA USA
Distribution: RH9 Kernel 2.4.20-18.9
Posts: 69

Rep: Reputation: 15
Not sure. It bothers me that you got a "ftp: bind: Address already in use" error.

I found this thread using "ftp: bind: Address already in use" as the search string on Google:

from http://www.redhat.com/archives/redha.../msg01103.html

Quote:
> Anyway, I have a feeling it's just something that happens with the firewall
> since you are natting out and then coming back in again. The ftp server
> responds back to client telling client to use port XXX. This response goes
> back out the firewall and in again to the client. The client then attempts
> to open on that port back out through the firewal but it's already in use on
> the firewall by the server so you get that "Address already in use" error.
> So it supposed to happen that way.
If the router is doing all the NAT work (check on the Linux server to see if there are firewall/NAT issues there too), then it seems most likely that the problem is with the router. You might want to try rebooting it if you have not already done so. Also, check to make sure that you have the latest firmware; My Linksys wireless 54 had some issues under certain circumstances until the upgrade.

Last but not least, it is possible that you have something bound to the port that should not be (check with netstat --all) see a similar issue here:

http://www.linuxquestions.org/questi...hreadid=244000

This is a good resourse:
http://hea-www.harvard.edu/~fine/Tech/addrinuse.html

-Gabriele
 
Old 11-05-2004, 07:58 PM   #5
JCdude2525
Member
 
Registered: Mar 2004
Location: Berlinsville
Distribution: Slackware/Fedora
Posts: 103

Original Poster
Rep: Reputation: 15
That redhat link thing helped a lot. That's the same exact problem I have.
My router does have a NAT firewall on it, so it causes that to happen.
I can't turn the firewall off. But I thought that people outside of my network
wouldn't be able to access it, but they can. See, my original goal was
to make an ftp server that people outside of my network could get to,
and I got that done. If I have to access the server from within the lan,
I just use the local IP address. But thanks for the help anyway!

-Jim

Last edited by JCdude2525; 11-05-2004 at 08:04 PM.
 
Old 12-06-2004, 05:42 AM   #6
dakpan
LQ Newbie
 
Registered: Aug 2003
Location: Belgium
Distribution: Slackware
Posts: 1

Rep: Reputation: 0
Some ppl have more luck than I have likely,...

I'm having the same problem with the same errors,
did the same actions to come to a solution,

Only diffrence... mine STILL doesn't work, and the error is still the same....

DARN
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Shell Script: Find "Word" Run "Command" granatica Linux - Software 5 07-25-2007 07:42 AM
"append is illegal in vi mode" rgiggs Slackware 3 10-28-2004 11:00 AM
Tiny Sofa 2.0 - I thought "halt", "reboot" were only root command ?? sorcerer Linux - Distributions 1 08-21-2004 03:28 PM
Various Problems After Kernel Recompile - Keyboard Screwed, "Illegal Instructions"... johnleemk Linux - General 0 02-04-2004 11:33 PM
"segmentation error" when issuing "useradd" command through terminal with RH 9.0 kaihuang Linux - General 0 10-21-2003 11:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration