Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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 have installed RedHat 7.2 (the download version) on a box. I can ping it by name from my Windows 2000 machine without problems. I can also connect to it via SSH with WinSCP2 or Putty, and via a browser with http.
I have installed proftpd on the machine and have it running standalone. I don't have ipchains running, and have turned off xinetd, and have also turned off the firewall (ZoneAlarm) on the Windows PC, and the RedHat box does not have Shorewall or any other firewall as far as I am aware. But when I try to FTP from the Windows 2000 machine, it doesn't get past:
connecting to 123.123.123.123:21
(Not the real IP address, obviously)
So it's not even connecting to the machine.
I also spent some time trying to get Samba working, but this also wouldn't work, I would get the following error when trying to connect from the Windows 2000 server:
No service is operating at the destination network endpoint on the remote system.
This is driving me nuts. I can find hundreds of different pages on the web about how to configure Samba and proftpd, but none of them have helped. I've already wasted about ten hours on it.
Is there not some logical troubleshooting process I can go through to find the source of this problem? It must be something pretty fundamental if the services aren't even connecting.
Anyone got any ideas? The Linux box does have a process called portmap running, but as far as I can tell from what I have read this shouldn't affect Samba or FTP.
Do you have nmap? If not get is, it is a port scanner. After you install it do a port scan and see if the services are advertised. The portmapper question, if I remember right, is only used on the client side of NFS and samba.
Thanks again Tom! Finally I seem to be progressing in the diagnosis.
I ran nmap. Port 21, which I believe is the main one FTP uses, was not listed. nmap states that those not show are in state 'filtered', in other words, blocked by a firewall.
Seeing as I can FTP successfully from the Windows 2000 box to other machines, I guess that means I have to assume the firewall is on the Redhat box.
I also assume that a firewall has to run as a process. However, I don't recognise any of the running processes as being firewalls. Here is a summary of the running processes:
I checked the log files, there wasn't anything wrong.
I logged into FTP locally successfully.
I ran nmap locally, showing that the port was open.
I ran nmap from the Windows 2000 machine again, showing the ftp port on the server to be closed. there is no firewall on the server, or the Windows 2000 machine.
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418
Rep:
My proftpdconfig:
<SNIP>
ServerName "Whatever you Like"
ServerType inetd
DefaultServer on
DefaultRoot ~
ShowSymlinks on
UseReverseDNS off
IdentLookups off
# Port 21 is the standard FTP port.
Port 21
PassivePorts 2121 2121
Bind Your.internal.IP.address
MasqueradeAddress Your.external.IP..address
<SNIP>
This will bind your server to port 21, and (for my firewall) passive port to 2121.
Next, I let my server listen on my internal IP address, but it will reply with it's external address. (This is a limitation of the way FTP works, it's really a dumb protocol)
You might want to dig into the FTP protocol to find a solution, but this setup works fine for me.
Good luck, and if it works: Please let me (and all others) know!
i had a problem like this before on RH8 using vsFTPd, everything looked ok, i could ping, etc... but the problem was finally that i had wuFTPd running in the background and didnt even know it... so i killed that and it worked fine.
....
you can connect lo localhost, your can ping between two endpoints, 21 is open, youre config'd properly (i dont know much about proftp), and your win box can ftp to other sites...
that covers alot...
have you tried ftping in from another windows box? have you tried using a different ftpd? long shots, but youre running outta things to test!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.