Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Question about open ports



On Sun, 24 Feb 2019 13:12:55 +0000 Arthur Barlow
<arthurbarlow%gmail.com@localhost> wrote:
> I'm using amd64 Current, (8.99.34), which I use as a desktop machine
> as well as an NFS file server.  When I scan the ports, I see the ones
> I expect, sun rpc, (111), and nfsd, (2049), but I also see 1021 -
> 1023 as listening ports.
> 
> When I look these up on IANA, they are mentioned as experimental.  I
> don't know what launches these listening ports, but I suspect nfs.
> Can someone reassure me with their wisdom that these are necessary,
> or not.

I'm not sure what's normal (I don't run nfs), but sockstat(1) will tell
you which process is opening the ports.  You'll probably want something like 

sockstat -l -n -f inet -f inet6 -p 1021-1023

-- IDL


Home | Main Index | Thread Index | Old Index