30 Jul 2012 23:56
[Proftpd-user] unable to connect to proftpd
Pierre Hardy <pierrehar <at> gmail.com>
2012-07-30 21:56:40 GMT
2012-07-30 21:56:40 GMT
I'm new to linux and proftpd
I'm running a base CentOS 6.3 server.
When attempting to connect from within my home network, the connection gets 'stuck':
lftp 192.168.1.24:~> ls
`ls' at 0 [Making data connection...]
I've added a rule to iptables:
iptables -A INPUT -p tcp -dport 21 -j ACCEPT
ftpd: ALL in hosts.allow
Also, I placed a sym link in /var/ftp/ to point to a separate storage that will be used for the ftp site.
$chcon -R -t public_content_t /var/ftp
$chcon -R -t public_content_t /pub (this is the mount location that is symlinked to from /var/ftp/)
Sooo I'm guessing something is wrong with my config file.
Here is my proftpd.conf (from basic.conf):
ServerName "ProFTPD Default Installation"
# Port 21 is the standard FTP port.
# Don't use IPv6 support by default.
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
# 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).
# Set the user and group under which the server will run.
# Normally, we want files to be overwriteable.
# Bar use of SITE CHMOD by default
# A basic anonymous configuration, no upload directories. If you do not
# want anonymous users, simply delete this entire <Anonymous> section.
# We want clients to be able to login with "anonymous" as well as "ftp"
UserAlias anonymous ftp
# Limit the maximum number of anonymous logins
# We want 'welcome.msg' displayed at login, and '.message' displayed
# in each newly chdired directory.
# Limit WRITE everywhere in the anonymous chroot
I'm not sure about what user/group to use in both areas requiring them in the config file so I changed them to ftp/ftp.
Any pointers welcome. Thanks
------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________ ProFTPD Users List <proftpd-users <at> proftpd.org> Unsubscribe problems? http://www.proftpd.org/list-unsub.html