Date: Mon, 12 Jun 2006 20:37:32 GMT From: Andrus Nomm <andrus@wask.org> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/98872: fetch does not bind ip for ftp data stream on download Message-ID: <200606122037.k5CKbWbu047558@www.freebsd.org> Resent-Message-ID: <200606122040.k5CKeEhV046193@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 98872 >Category: misc >Synopsis: fetch does not bind ip for ftp data stream on download >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jun 12 20:40:13 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Andrus Nomm >Release: 4.11-RELEASE-p10 >Organization: >Environment: FreeBSD cell.wask.org 4.11-RELEASE-p10 FreeBSD 4.11-RELEASE-p10 #14: Fri Jun 10 21:40:26 EEST 2005 root@cell.members.ee:/usr/obj/usr/src/sys/MEMBERS i386 >Description: While fetching files from remote ftp site and specifing FETCH_BIND_ADDRESS fetch does not bind it while creating ftp data connection. strace shows: On connecting to ftp site (login) socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 3 bind(3, {sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("83.166.48.25")}, 16) = 0 connect(3, {sa_family=AF_INET, sin_port=htons(21), sin_addr=inet_addr("130.240.22.195")}, 16) = 0 On opening ftp data connection: getpeername(3, {sa_family=AF_INET, sin_port=htons(21), sin_addr=inet_addr("130.240.22.195")}, [16]) = 0 connect(4, {sa_family=AF_INET, sin_port=htons(53456), sin_addr=inet_addr("130.240.22.195")}, 16^C <unfinished ...> bind ip is missing >How-To-Repeat: Bind ip via FETCH_BIND_ADDRESS. Try to download from ftp (block primary ip of server) >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200606122037.k5CKbWbu047558>