On Tue, Jan 09, 2024 at 10:13:56AM +0300, 4 wrote:
> >> i'm quoting the man page for mountd:
> >> The -n flag historically allowed clients to use non-reserved ports
> >> when
> >> communicating with mountd. In OpenBSD, a reserved port is always
> >> used.
> >> "reserved port". "always".. however the port is different each time. how
> >> to deal with this?
> >>
>
> > resreved means that the port number is below 1024. The RPC system,
> > (which is used to implement NFS) iuses portmapper to determine which
> > service runs on which port. What problem are you trying to solve?
>
> > -Otto
> i'm trying to solve the problem of which port need to open on the pf. the
> variant of processing rpcinfo output with script and then putting a rules
> into an anchor is not very pretty. especially considering that this is not
> enough, and i still need to repeat this action by cron. this variant works,
> but it's not even close to how it should work %\ why i should solve such the
> task at a time when humanity is flying to conquer Mars?
>
These kind of off-topic remarks won't help you getting answers,
-Otto