From nobody@FreeBSD.org  Thu Nov 25 20:51:59 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 72F351065670
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 25 Nov 2010 20:51:59 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (unknown [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 54BF18FC12
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 25 Nov 2010 20:51:59 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id oAPKpwWa075853
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 25 Nov 2010 20:51:58 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id oAPKpwP0075852;
	Thu, 25 Nov 2010 20:51:58 GMT
	(envelope-from nobody)
Message-Id: <201011252051.oAPKpwP0075852@red.freebsd.org>
Date: Thu, 25 Nov 2010 20:51:58 GMT
From: Konstantin Feoktistov <fk@govorit.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: proftpd-1.3.3c_1 - IPv6 support is broken
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         152579
>Category:       ports
>Synopsis:       ftp/proftpd 1.3.3c_1 - IPv6 support is broken
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    mm
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 25 21:00:24 UTC 2010
>Closed-Date:    Mon Jun 06 11:47:59 UTC 2011
>Last-Modified:  Mon Jun 06 11:47:59 UTC 2011
>Originator:     Konstantin Feoktistov
>Release:        8.1-RELEASE-p1
>Organization:
Svyaz-Holding ISP
>Environment:
8.1-RELEASE-p1 i386
Kernel compiled with IPv6 support

### ifconfig ####
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=2009<RXCSUM,VLAN_MTU,WOL_MAGIC>
        ether 00:0c:76:19:eb:87
        inet x.x.x.x netmask 0xffffffe0 broadcast x.x.x.x
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
ipfw0: flags=8801<UP,SIMPLEX,MULTICAST> metric 0 mtu 65536
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=3<RXCSUM,TXCSUM>
        inet6 fe80::1 prefixlen 64 scopeid 0x3
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
        nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
lo1: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=3<RXCSUM,TXCSUM>

>Description:
When compile proftpd-1.3.3c_1 with IPv6 support from ports, looks like it can't accure correct IPv6 adresses:
### proftpd -n -d9 ###

 - using TCP receive buffer size of 65535 bytes
 - using TCP send buffer size of 65535 bytes
 - mod_tls/2.4.1: using OpenSSL 0.9.8l 5 Nov 2009
 - ROOT PRIVS at mod_log.c:537
 - RELINQUISH PRIVS at mod_log.c:542
 - DenyFilter: compiling regex '\*.*/'
 - DenyFilter: compiling regex '\*.*/'
x.x.x.x - Config for CX WWW FTP access:
x.x.x.x - RequireValidShell
x.x.x.x - ServerIdent
x.x.x.x - Umask
x.x.x.x - MaxClients
x.x.x.x - MaxClientsPerHost
x.x.x.x - MaxLoginAttempts
x.x.x.x - UserID
x.x.x.x - UserName
x.x.x.x - GroupID
x.x.x.x - GroupName
x.x.x.x - SyslogLevel
x.x.x.x - IdentLookups
x.x.x.x - ExtendedLog
x.x.x.x - DenyFilter
x.x.x.x - TimeoutIdle
x.x.x.x - TimeoutLogin
x.x.x.x - TimeoutNoTransfer
x.x.x.x - TimeoutStalled
x.x.x.x - DefaultTransferMode
x.x.x.x - AllowForeignAddress
x.x.x.x - SQLAuthTypes
x.x.x.x - SQLAuthenticate
x.x.x.x - SQLConnectInfo
x.x.x.x - SQLUserTable
x.x.x.x - SQLUsernameField
x.x.x.x - SQLPasswordField
x.x.x.x - SQLUidField
x.x.x.x - SQLGidField
x.x.x.x - SQLHomedirField
x.x.x.x - SQLShellField
x.x.x.x - SQLGroupTable
x.x.x.x - SQLGroupnameField
x.x.x.x - SQLGroupGIDField
x.x.x.x - SQLGroupMembersField
x.x.x.x - CreateHome
x.x.x.x - DefaultRoot
x.x.x.x - AllowOverwrite
x.x.x.x - DenyFilter
x.x.x.x - ROOT PRIVS at mod_delay.c:354
x.x.x.x - RELINQUISH PRIVS at mod_delay.c:359
x.x.x.x - ROOT PRIVS at mod_ctrls.c:1139
x.x.x.x - RELINQUISH PRIVS at mod_ctrls.c:1141
x.x.x.x - mod_lang/0.9: binding to text domain 'proftpd' using locale path '/usr/local/share/locale'
x.x.x.x - mod_lang/0.9: using locale files in '/usr/local/share/locale'
x.x.x.x - mod_lang/0.9: added the following supported languages: fr_FR.UTF-8, fr_FR, zh_CN.UTF-8, zh_CN, zh_TW.UTF-8, zh_TW, bg_BG.UTF-8, bg_BG, en_US.UTF-8, en_US, it_IT.UTF-8, it_IT, ja_JP.UTF-8, ja_JP, ko_KR.UTF-8, ko_KR, ru_RU.UTF-8, ru_RU
x.x.x.x - SETUP PRIVS at main.c:3127
x.x.x.x - ROOT PRIVS at main.c:2151
x.x.x.x - RELINQUISH PRIVS at main.c:2158
x.x.x.x - ROOT PRIVS at main.c:2486
x.x.x.x - opening scoreboard '/var/run/proftpd.scoreboard'
x.x.x.x - RELINQUISH PRIVS at main.c:2512
x.x.x.x - ROOT PRIVS at mod_ctrls_admin.c:1180
x.x.x.x - opening scoreboard '/var/run/proftpd.scoreboard'
x.x.x.x - RELINQUISH PRIVS at mod_ctrls_admin.c:1182
x.x.x.x - ROOT PRIVS at inet.c:238
x.x.x.x - RELINQUISH PRIVS at inet.c:256
x.x.x.x - ROOT PRIVS at inet.c:350
x.x.x.x - RELINQUISH PRIVS at inet.c:413
x.x.x.x - getnameinfo error: ai_family not supported
x.x.x.x - ProFTPD 1.3.3c (maint) (built &#1095;&#1090; &#1085;&#1086;&#1103; 25 2010 23:34:59 MSK) standalone mode STARTUP
x.x.x.x - ROOT PRIVS at pidfile.c:48
x.x.x.x - RELINQUISH PRIVS at pidfile.c:50
x.x.x.x - getnameinfo error: ai_family not supported
x.x.x.x - ROOT PRIVS at main.c:1238
x.x.x.x - RELINQUISH PRIVS at main.c:1242
x.x.x.x - getnameinfo error: ai_family not supported
x.x.x.x - ProFTPD terminating (signal 2)
x.x.x.x - ROOT PRIVS at main.c:2014
x.x.x.x - ROOT PRIVS at mod_delay.c:1328
x.x.x.x - RELINQUISH PRIVS at mod_delay.c:1333
x.x.x.x - RELINQUISH PRIVS at main.c:2036
x.x.x.x - ProFTPD 1.3.3c standalone mode SHUTDOWN
x.x.x.x - ROOT PRIVS at main.c:2043
x.x.x.x - deleting existing scoreboard '/var/run/proftpd.scoreboard'
x.x.x.x - RELINQUISH PRIVS at main.c:2045


Sockstat shows proftpd is listening 21 port for v4 & v6 sockets, but FTP clients can't connect server.
>How-To-Repeat:
Compile proftpd-1.3.3c_1 with IPv6 support from ports, try to connect.
No matter what auth backend you are using.
>Fix:
Temporary solution: turn of IPv6 support at compilation.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->mm 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sat Nov 27 21:27:38 UTC 2010 
Responsible-Changed-Why:  
Fix synopsis and assign. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=152579 

From: Martin Matuska <mm@FreeBSD.org>
To: bug-followup@FreeBSD.org, fk@govorit.ru
Cc:  
Subject: Re: ports/152579: ftp/proftpd 1.3.3c_1 - IPv6 support is broken
Date: Sun, 28 Nov 2010 00:15:22 +0100

 I am running 1.3.3c with IPv6 and IPv4 (VirtualHosts) without problems.
 
 Do you have a sample configuration?
State-Changed-From-To: open->closed 
State-Changed-By: mm 
State-Changed-When: Mon Jun 6 11:47:57 UTC 2011 
State-Changed-Why:  
Feedback timeout and unable to reproduce. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=152579 
>Unformatted:
