Help - Search - Members - Calendar
Full Version: Proftpd Help
Linuxhelp > Support > Technical Support
Please help - Can't connect!

dan@dan:/etc/init.d$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:04:85:ED:C1
inet addr:10.xx.42.10 Bcast: Mask:

dan@dan:/etc/init.d$ ftp 10.xx.42.10
Connected to 10.xx.42.10.
500 Sorry, no server available to handle request on 10.xx.42.10

dan@dan:~$ ftp localhost
Connected to localhost.localdomain.
220 ProFTPD 1.2.10 Server (ProFTPD) []
Name (localhost:dan):

Localhost?! How do I set it to the 10.xx.42.10? (DHCP - can set it static if DHCP difficult)

Many thanks,
IPtables? Localhost wont always go out to come back through the filewall. Make sure you have the port open, or I could go do it for you.

Second, localhost is always ALWAYS a reference to If you change that you will not be a happy camper. localhost is just a loop back.

In the future don't post full IPs regardless of if they are valid or not.
Thanks for your reply!

And, thanks for your concern about my IP! I'm not too concerned about somebody knowing my private dhcp addr. It's with in the RFC 1918. However, I probably shouldn't have posted my MAC addr!

I've no iptables. (See below) I believe what I need is for ProFTPD to believe it is hosted from (located at) my 10 addr, NOT from the loopback. I'm not sure if this is within ProFTPD or what!

dan@dan:~$ sudo iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ProFTP doesn't care where it hosted from. Thats not the issue.

Do this. Run nmap -P0 -p 21 10.xx.xx.xx and see what it says. It will tell you if it can make a connection on that port or not.

You can also run telnet 10.xx.xx.xx 21 and see what service is trying to run on 21.

I am still convinced that you have some sort of firewall running on your computer or somewhere in your network.
Telnet doesn't give anything usefull.

500 Sorry, no server available to handle request on 10.42.XX.10
Connection closed by foreign host.

dan@dan:~$ nmap -P0 -p 21 10.42.XX.10

Starting nmap 3.81 ( ) at 2005-12-21 21:12 EST
Interesting ports on 10.42.XX.10:
21/tcp open ftp

Nmap finished: 1 IP address (1 host up) scanned in 0.079 seconds

It's open. Keep in mind, I'm typing in all these command locally on the same machine the server is running on. 10.42.XX.10 would not be able to access the localhost. There's no route!

dan@dan:~$ route -e
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
10.42.XX.0 * U 0 0 0 eth0
default floppyfw.charte UG 0 0 0 eth0

Firewall in my network shouldn't matter. The traffic is local. I'm not sure what would be filtering if my iptables are empty. sad.gif
It looks to me like the server is listening fine, it just doesn't have a virtual-server setup to actually handle the transaction. So I dont think it is a firewall problem.

Webmin (like usual) has a module for configuring ProFTP which has worked for me in the past - see (or, get the package from your distributor, most of them provide it)

First off, I'd personally like to take this chance to thank Jim and DS2K3 for helping me.

After installing webmin, I looked around. Looked everywhere; finally saw there was an option for virtual servers:

Handles any FTP connections not handled by virtual servers.
Address Any Server name Default

Hmm... so I added one:
Handles all connections to 10.42.XX.10
Address 10.42.XX.10 Server name

Fixed it! My only mild concern is... I'm not 100% sure what a virtual server is, at least in this case.
Basically, ProFTP can handle multiple configurations, from different addresses or ports. A "virtual server" is the configuration for a speicific address or port. It's similar to the Virtual Servers used by Apache, and allows you to host multiple FTP services on one server, using one copy of ProFTP.

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2018 Invision Power Services, Inc.