Problems with VSFTPD and XINETD with IPV4 only setup

Abstract

I just had to configure a VSFTPD server with XINETD as a full virtual setup. This is typically used for faking virtual users to the systems apache user and group i.e www-data. I found some problems in an IPV4 only network using Ubuntu Trusty 14.04LTS.

I just had to configure a VSFTPD server with XINETD as a full virtual setup. This is typically used for faking virtual users to the systems apache user and group i.e www-data. I found some problems in an IPV4 only network using Ubuntu Trusty 14.04LTS.

The failure message was:

500 OOPS: could not bind listening IPv4 socket

Looks like it is a bug with the Trusty VSFTPD 3.0.2-1 version and XINETD. So here is the workaround i used.

service ftp
{
bind = 192.0.2.1
socket_type = stream
protocol = tcp
flags = IPv4
wait = no
user = root
server = /usr/sbin/vsftpd
server_args = /etc/vsftpd.conf -olisten=NO -olisten_ipv6=NO
instances = 20
disable = no
log_on_success += PID HOST DURATION
log_on_failure += HOST
}
Robert Schetterer, 18. June 2015

   xinetd    vsftpd    ipv4