🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #302901

Re: netstat -tulpn

#302901
From: Carlos E.R.
Date: Mon, 25 Mar 2019 19:34
68 lines
3517 bytes
On 25/03/2019 20.16, spector wrote:
>>
>> <Active Internet connections (only servers)>
>> <Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name>
>> <tcp        0      0 0.0.0.0:59148           0.0.0.0:*               LISTEN      480/rpc.statd>
>> <udp6       0      0 :::58148                :::*                                480/rpc.statd>
>>
>> Why is rpc.statd listening on ports 59148 and 58148?
> 
>   I have been port blocking these for some time now.
> 
> I blocked this one that is always open also
> 
> tcp6  0   0 :::111  :::*  LISTEN
> 
> Just love all this systemd stuff.

Why do you think it is related to systemd at all? Aren't you being paranoid?

It is just plain nfs stuff.


Google "what is rpc.statd?"

Answer:

rpc.statd records information about each monitored NFS peer on
persistent storage. ... An NFS client sends a hostname, known as the
client's caller_name, in each file lock request. An NFS server can use
this hostname to send asynchronous GRANT calls to a client, or to notify
the client it has rebooted.

which is just part of rpc.statd(8) - Linux man page, so read it.

Description

File locks are not part of persistent file system state. Lock state is
thus lost when a host reboots.

Network file systems must also detect when lock state is lost because a
remote host has rebooted. After an NFS client reboots, an NFS server
must release all file locks held by applications that were running on
that client. After a server reboots, a client must remind the server of
file locks held by applications running on that client.

For NFS version 2 [RFC1094] and NFS version 3 [RFC1813], the Network
Status Monitor protocol (or NSM for short) is used to notify NFS peers
of reboots. On Linux, two separate user-space components constitute the
NSM service:

rpc.statd
    A daemon that listens for reboot notifications from other hosts, and
manages the list of hosts to be notified when the local system reboots

sm-notify
    A helper program that notifies NFS peers after the local system reboots

The local NFS lock manager alerts its local rpc.statd of each remote
peer that should be monitored. When the local system reboots, the
sm-notify command notifies the NSM service on monitored peers of the
reboot. When a remote reboots, that peer notifies the local rpc.statd,
which in turn passes the reboot notification back to the local NFS lock
manager.



-- 
Cheers, Carlos.
Technical Details
Message-ID: <13nnmf-rrm.ln1@Telcontar.valinor>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <q5m9v5$7tb$1@news.mixmin.net> <q7b9e6$lo$1@news.mixmin.net>

Show Full Headers
Complete Article Headers
Message-ID: <13nnmf-rrm.ln1@Telcontar.valinor>
Subject: Re: netstat -tulpn
Date: Mon, 25 Mar 2019 20:34:25 +0100
From: "Carlos E.R." <robin_listas@es.invalid>
References: <q5m9v5$7tb$1@news.mixmin.net> <q7b9e6$lo$1@news.mixmin.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: alt.privacy.anon-server,alt.os.linux,comp.os.linux.misc
Lines: 68
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Trace: individual.net +fWTuCxJWq9niZjv+HosUAzO7red1n9zzIzSpXK2afvPfGLrYB
X-Orig-Path: Telcontar.valinor!not-for-mail
Cancel-Lock: sha1:brDnWaGG8bM/aQRbcsBZfxYTeT8=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1
In-Reply-To: <q7b9e6$lo$1@news.mixmin.net>
Content-Language: en-CA