Wanting to try my hands at dpb on alpha I set up an nfs-server since in
forever. Mounting the share on alpha goes without problems, but trying
to mount it on my amd64 laptop I trigger the following message on the
server:
mountd[19611]: Refused mount RPC from host 192.168.153.197 port 51155

Looking up the message in mountd.c I see that it's because of the
following check: sport >= IPPORT_RESERVED
So somehow my mount command is being generated on a non-reserved port,
while man mount_nfs say:
     The -P flag historically informed the kernel to use a reserved port
     when communicating with clients.  In OpenBSD, a reserved port is
     always used.

server$ cat /etc/exports 
/ports -maproot=root -network=192.168.153.0 -mask=255.255.255.0

client$ doas mount -t nfs 192.168.153.4:/ports /mnt/
mount_nfs: bad MNT RPC: RPC: Authentication error; why = Client credential too 
weak

Based upon the port-number it does not look like an endianness problem,
so most likely the source-port isn't being properly bound.

Is anyone else seeing this? Did I botch something up? Is there an actual
bug here?

server version:
OpenBSD 6.7 (GENERIC.MP) #4: Wed Jul 15 11:16:20 MDT 2020
client version:
OpenBSD 6.7-current (GENERIC.MP) #26: Fri Aug 14 11:52:30 MDT 2020

martijn@

Reply via email to