Joined: 02 Apr 2003
Location: Den Dolder, The Netherlands
|Posted: Sun Jun 20, 2004 7:36 pm Post subject: vsftpd FTP server connection problem
|If, like me you suddenly find that your vsftpd FTP server can no longer be reached after someit may well be that this problem can easily be solved. Note: this tip applies to starting up vsftpd from xinetd only!
For some reason the default for vsftpd's configuration file is set to the brandnew IPv6 standard. If, like 99% of the world, you use IPv4, vsfptd refuses to build the socket. Fortunately, the solution is very simple. In the file /etc/xinetd.d/vsftpd you must change a line. The default contents of this file are commented out and replaced as follows:
The first commented line is self-explanatory and has nothing to do with this tip. The second commented line specifies the default socket to be an IPv6 service, if available. However, on my system I only use IPv4.
|# default: off
# description: Vsftpd is an FTP server, designed to be secure.
# $Header: /var/cvsroot/gentoo-x86/net-ftp/vsftpd/files/vsftpd.xinetd.ipv6,v 1.1 2003/04/06 20:22:00 gmsoft Exp $
socket_type = stream
wait = no
user = root
server = /usr/sbin/vsftpd
server_args = /etc/vsftpd/vsftpd.conf
log_on_success += DURATION USERID
log_on_failure += USERID
nice = 10
disable = no
# disable = yes
flags = IPv4
# flags = IPv6