I am having the same problem here. I setup my server to port 34012 and open it in my iptables:
iptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 34012 -j ACCEPT
I followed these instructions:
http://gentoo-wiki.com/HOWTO_setup_a...server#ProFTPd
I just want to have a FTP server running for a couple minutes so a friend can upload some pics to me and then i will turn it off because i dont use it and i've heard it is unreliable.
I try:
ftp
ftp> open 192.168.1.231 34012
ftp: connect: Connection refused
I want to connect as user ftp or anonymous. As ryedunn said do we need to open port 20? Or, in my case, port 34011? I am running my server in standalone mode.
Does anyone know how to help?
***************************************************************************
EDIT1: I just found out that i can connect as a regular user (one already registered in the system) if i "open 127.0.0.1 34012". My proftpd.conf is:
ServerName "FTP server"
ServerType standalone
DefaultServer on
RequireValidShell off
# Port 21 is the standard FTP port.
Port 34012
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022
# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd).
MaxInstances 30
# Set the user and group under which the server will run.
User ftp
Group ftp
# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
DefaultRoot ~
# Normally, we want files to be overwriteable.
AllowOverwrite on
# Bar use of SITE CHMOD by default
<Limit SITE_CHMOD>
DenyAll
</Limit>
# A basic anonymous configuration, no upload directories. If you do not
# want anonymous users, simply delete this entire <Anonymous> section.
<Anonymous ~ftp>
User ftp
Group ftp
AnonRequirePassword on
# We want clients to be able to login with "anonymous" as well as "ftp"
UserAlias anonymous ftp
# Limit the maximum number of anonymous logins
MaxClients 10
# We want 'welcome.msg' displayed at login, and '.message' displayed
# in each newly chdired directory.
DisplayLogin welcome.msg
DisplayFirstChdir .message
# Limit WRITE everywhere in the anonymous chroot
<Limit WRITE>
DenyAll
</Limit>
<Directory incoming>
<limit READ WRITE DIRS STOR CWD CDUP>
AllowAll
</limit>
</Directory>
</Anonymous>
The problem as user "ftp":
ftp> open 127.0.0.1 34012
Connected to 127.0.0.1 (127.0.0.1).
220 ProFTPD 1.2.10 Server (FTP server) [127.0.0.1]
Name (127.0.0.1:johndoe): ftp
500 AUTH not understood
SSL not available
331 Password required for ftp.
Password:
530-Unable to set anonymous privileges.
530 Login incorrect.
Login failed.
Remote system type is UNIX.
Using binary mode to transfer files.
***********************************************
EDIT2:ALMOST SOLVED
I just found out that /home/ftp was set to 644. I changed it to 744 and it works now. The last problem to solve is to figure how to get my server to be reacheable thru its ip address not just 127.0.0.1