Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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?
> 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:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.