Summary: | net-ftp/vsftpd: Does not run on IPv4 and IPv6 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Norman Rieß <norman> |
Component: | [OLD] Server | Assignee: | Gentoo's FTP Packages Maintainers <net-ftp> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | bugs, c1pher, hwoarang, norman, wired |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Norman Rieß
2012-04-13 10:57:52 UTC
I presume you need to run the two copies using xinetd and not using the normal init scripts. Thank you. I tried that and found me in a similar situation: xinetd.d # cat vsftpd_ipv4 service ftp { disable = no socket_type = stream protocol = tcp flags = IPv4 wait = no user = root server = /usr/sbin/vsftpd server_args = /etc/vsftpd/vsftpd.conf -olisten=NO -olisten_ipv6=NO } xinetd.d # cat vsftpd_ipv6 service ftp { disable = no socket_type = stream protocol = tcp flags = IPv6 wait = no user = root server = /usr/sbin/vsftpd server_args = /etc/vsftpd/vsftpd.conf -olisten=NO -olisten_ipv6=NO } vsftpd # grep listen vsftpd.conf | grep -v "#" listen=NO listen_ipv6=NO Apr 13 13:33:39 [start-stop-daemon] pam_unix(start-stop-daemon:session): session opened for user nobody by root(uid=0) Apr 13 13:33:39 [xinetd] bind failed (Address already in use (errno = 98)). service = ftp Apr 13 13:33:39 [xinetd] Service ftp failed to start and is deactivated. Apr 13 13:33:39 [xinetd] xinetd Version 2.3.14 started with libwrap loadavg options compiled in. Apr 13 13:33:39 [xinetd] Started working: 1 available service netstat -lp | grep xine tcp 0 0 *:ftp *:* LISTEN 14436/xinetd I hope i got the xinetd configs right. I've never tried this configuration before so lets see what others think. I don't believe this is a problem with the package though, so you may want to move this to forums as bugzilla is not the ideal place for this kind of discussion I did that: http://forums.gentoo.org/viewtopic-p-7012190.html#7012190 Thank you. Hello Markos, please close this bug. Setting up the IPv6 listener only allows IPv4 connections via the IPv6 socket. tcp6 0 0 :::21 :::* LISTEN 2413/vsftpd tcp6 0 0 176.9.155.157:21 78.51.166.103:44529 VERBUNDEN 2417/vsftpd I was mislead by the config files statement: "#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 !!" So maybe a sentence like "This enables IPv6 and IPv4 connections would be clearer." Regards Norman Thanks. Please contact the upstream developer to request a change in the configuration file |