/
Bugzilla – Bug 2247
wrong 'address mismatch' in core_pasv() (IPv6 problem ?)
Last modified: 2003-10-31 11:42:16 UTC
1.2.9rc3 compiled on FreeBSD-4.7 RELEASE with '#define USE_IPV6 1' in config.h produces invalid 'address mismatch' messages like this: Oct 20 22:41:14 ftp proftpd[61474]: IP1 (IP2[IP2]) - Refused PORT IP2,4,139 (address mismatch) this comes from modules/mod_core.c, around line 3119. when I added debug messages to src/netaddr.c to see what is the problem, I got -2 return value. see the patch for details. the output were then like this: Oct 21 20:06:47 ftp proftpd[5045]: IP1 (IP4[IP4]) - A 28 (null) 2 IP4 Oct 21 20:06:47 ftp proftpd[5045]: IP1 (IP4[IP4]) - Refused PORT IP4,4,15 (-2 ad dress mismatch) Oct 21 20:06:48 ftp proftpd[5041]: IP1 (IP2[IP2]) - getnameinfo error: ai_family not supported Oct 21 20:06:48 ftp proftpd[5041]: IP1 (IP2[IP2]) - A 28 (null) 2 IP2 Oct 21 20:06:48 ftp proftpd[5041]: IP1 (IP2[IP2]) - Refused PORT IP2,176,66 (-2 address mismatch) Oct 21 20:06:48 ftp proftpd[5047]: IP1 - B 2 IP1|2 IP1 Oct 21 20:06:49 ftp proftpd[5047]: IP1 (IP3[IP3]) - USER sev-era.pb: Login succe ssful. Oct 21 20:06:50 ftp proftpd[5041]: IP1 (IP2[IP2]) - getnameinfo error: ai_family not supported Oct 21 20:06:50 ftp proftpd[5041]: IP1 (IP2[IP2]) - A 28 (null) 2 IP2 Oct 21 20:06:50 ftp proftpd[5041]: IP1 (IP2[IP2]) - Refused PORT IP2,176,67 (-2 address mismatch) the server was compiled with ./configure only
Created attachment 1911 [details] this is patch to add debug messages to src/netaddr.c
See most recent patch attached to Bug#2204.
Current CVS sources should have this issue fixed.
Can you confirm that this problem is fixed in current CVS?
seems to be working with both EPRT and EPSV with current as of today.
What about PORT?
seems to be working: lftp ftp:/pub> get 00index.txt ---> TYPE I <--- 200 Type set to I ---> SIZE 00index.txt <--- 213 360 ---> MDTM 00index.txt <--- 213 20030530085235 ---> PORT <IPaddr>,132,108 <--- 200 PORT command successful ---> RETR 00index.txt <--- 150 Opening BINARY mode data connection for 00index.txt (360 bytes) ---- Closing data socket <--- 226 Transfer complete. 360 bytes transferred in 1 second (280b/s)
Resolved in 1.2.9. Thanks!