[opensuse] running vsftpd on ipv4 and ipv6 ?
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@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Per Jessen wrote:
According to the comments in the sample vsftpd config file, I need two copies of vsftpd.
Platform: 32bit openSUSE 12.3+updates. -- Per Jessen, Zürich (19.4°C) http://www.dns24.ch/ - free DNS hosting, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Per Jessen wrote:
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
According to https://bugzilla.redhat.com/show_bug.cgi?id=592850, the vsftpd documentation is wrong. There is no need to run two copies to have ftp on ipv4 and ipv6. -- Per Jessen, Zürich (19.5°C) http://www.dns24.ch/ - free DNS hosting, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (1)
-
Per Jessen