misc/117711: rpcbind binds to all interfaces on random ports even
when using the -h flag
Carlos Eduardo Monti
slaytanic at gmail.com
Tue Oct 30 23:20:04 PDT 2007
>Number: 117711
>Category: misc
>Synopsis: rpcbind binds to all interfaces on random ports even when using the -h flag
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Oct 31 06:20:03 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator: Carlos Eduardo Monti
>Release: FreeBSD 6.3-PRERELEASE
>Organization:
gfx & stuff
>Environment:
FreeBSD overnight.wicked.homeunix.net 6.3-PRERELEASE FreeBSD 6.3-PRERELEASE #2: Sun Oct 28 01:47:10 ART 2007 root at overnight.wicked.homeunix.net:/usr/obj/usr/src/sys/OVERNIGHT i386
>Description:
rpcbind opens two sockets on all interfaces on random ports when specified the -h flag, one socket for udp4 and one for udp6.
>How-To-Repeat:
overnight# sockstat | grep rpcbind
overnight# rpcbind -h 192.168.0.3
overnight# sockstat | grep rpcbind
root rpcbind 2696 4 udp6 *:* *:*
root rpcbind 2696 5 stream /var/run/rpcbind.sock
root rpcbind 2696 6 udp6 ::1:111 *:*
root rpcbind 2696 7 udp6 *:* *:*
root rpcbind 2696 8 udp6 *:617 *:*
root rpcbind 2696 9 tcp6 ::1:111 *:*
root rpcbind 2696 10 tcp6 *:* *:*
root rpcbind 2696 11 udp4 127.0.0.1:111 *:*
root rpcbind 2696 12 udp4 192.168.0.3:111 *:*
root rpcbind 2696 13 udp4 *:944 *:*
root rpcbind 2696 14 tcp4 127.0.0.1:111 *:*
root rpcbind 2696 15 tcp4 192.168.0.3:111 *:*
overnight# killall rpcbind
overnight# rpcbind -h 192.168.0.3
overnight# sockstat | grep rpcbind
root rpcbind 2701 4 udp6 *:* *:*
root rpcbind 2701 5 stream /var/run/rpcbind.sock
root rpcbind 2701 6 udp6 ::1:111 *:*
root rpcbind 2701 7 udp6 *:* *:*
root rpcbind 2701 8 udp6 *:943 *:*
root rpcbind 2701 9 tcp6 ::1:111 *:*
root rpcbind 2701 10 tcp6 *:* *:*
root rpcbind 2701 11 udp4 127.0.0.1:111 *:*
root rpcbind 2701 12 udp4 192.168.0.3:111 *:*
root rpcbind 2701 13 udp4 *:804 *:*
root rpcbind 2701 14 tcp4 127.0.0.1:111 *:*
root rpcbind 2701 15 tcp4 192.168.0.3:111 *:*
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list