bin/65928: [PATCH] stock ftpd uses superuser credentials for active mode sockets

Bjoern A. Zeeb bzeeb-lists at lists.zabbadoz.net
Fri May 7 23:50:12 PDT 2004


On Sat, 8 May 2004, Eugene Grosbein wrote:

Hi,

> When an active IPv4 TCP connection between
> localIP:localport and remoteIP1:remoteport1 exists,
> it is not possible for local non-root user to create outgoing
> TCP connection from localIP:localport to remoteIP2:remoteport2.
>
> Why? It prevents http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/65928
> from resolving.

to do it with other wording:

if in active mode data is send to remote, the server uses ftp-data
as port (which is 20 [ftp(21)-1]) and you are running into creating
a socket in the privileged port range:
net.inet.ip.portrange.reservedlow to net.inet.ip.portrange.reservedhigh
which "only may be opened by root-owned processes" [ip(4)].

-- 
Bjoern A. Zeeb				bzeeb at Zabbadoz dot NeT
56 69 73 69 74				http://www.zabbadoz.net/


More information about the freebsd-net mailing list