Mailinglist Archive: opensuse (878 mails)

< Previous Next >
[opensuse] running vsftpd on ipv4 and ipv6 ?
  • From: Per Jessen <per@xxxxxxxxxxxx>
  • Date: Thu, 05 Sep 2013 09:58:21 +0200
  • Message-id: <l09dj8$oii$1@saturn.local.net>
According to the comments in the sample vsftpd config file, I need two
copies of vsftpd.

# When "listen" directive is enabled, vsftpd runs in standalone mode
# and listens on IPv4 sockets. This directive cannot be used in
# conjunction with the listen_ipv6 directive.
listen=YES
#
# This directive enables listening on IPv6 sockets. To listen on IPv4
# and IPv6 sockets, you must run two copies of vsftpd with two
# configuration files.
# Make sure, that one of the listen options is commented !!
listen_ipv6=NO

So I created two config files:

/etc/vsftpd4.conf :
listen=YES
listen_ipv6=NO

/etc/vsftpd6.conf :
listen=NO
listen_ipv6=YES

Yet I am unable to run both at the same time. When vsftpd4 is running,
starting vsftpd6 gives me:

500 OOPS: could not bind listening IPv6 socket

From straceing, this is due to:

bind(3, {sa_family=AF_INET6, sin6_port=htons(21),
inet_pton(AF_INET6, "::", &sin6_addr), sin6_flowinfo=0,
sin6_scope_id=0}, 28) = -1 EADDRINUSE (Address already in use)


When vsftpd6 is running, starting vsftpd4 gives me:

500 OOPS: could not bind listening IPv4 socket

From straceing, this is due to:

bind(3, {sa_family=AF_INET, sin_port=htons(21),
sin_addr=inet_addr("0.0.0.0")}, 16) = -1 EADDRINUSE (Address already in
use)

What am I missing?


--
Per Jessen, Zürich (19.1°C)
http://www.dns24.ch/ - free DNS hosting, made in Switzerland.

--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups