ports/152579: proftpd-1.3.3c_1 - IPv6 support is broken

Konstantin Feoktistov fk at govorit.ru
Thu Nov 25 21:00:25 UTC 2010


>Number:         152579
>Category:       ports
>Synopsis:       proftpd-1.3.3c_1 - IPv6 support is broken
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 25 21:00:24 UTC 2010
>Closed-Date:
>Last-Modified:
>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 чт ноя 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:
>Unformatted:



More information about the freebsd-ports-bugs mailing list