Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]nfsv4 server handing out access denieds after reboot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
netsplit
n00b
n00b


Joined: 10 Jun 2024
Posts: 7

PostPosted: Sat Dec 14, 2024 11:17 pm    Post subject: [solved]nfsv4 server handing out access denieds after reboot Reply with quote

Couldn't find any posting of anyone having this problem but me, but for the next person here's the solution.


Problem: You run an nfsv4 server. When you reboot your nfsv4 server it gives everyone of the network clients that try to access it a nice error like:
Code:
netsplit@undisclosed /ultracore $ mount /ultracore/
mount.nfs4: access denied by server while mounting ultracore:/


It hands out access denieds like they're cars/bees and it thinks it's Opera Winfrey.

if you restart the service then it suddenly starts working correctly and lets authorized clients access things.


Was banging my head against it and realized I used hostnames for client authentication, not IPs. It probably converts those to IP addresses on start, and the network wasn't available when it was starting so it couldn't get the IP addresses.

Anyway the fix it seems was specifying the IP addresses of my clients in /etc/hosts:
Code:
# IPv4 and IPv6 localhost aliases
127.0.0.1   localhost
::1      localhost
10.0.4.3   undisclosed


Now clients can connect on boot.

It's working for me, so I'm done, but an alternative fix a future reader could try is using ip addresses in /etc/exports instead of hostnames.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum