treying to get nfs to work
This commit is contained in:
parent
2d3728f28b
commit
9bfddf14ce
2 changed files with 22 additions and 16 deletions
|
@ -41,7 +41,11 @@
|
|||
# nameservers = [ "10.0.0.14" "10.0.0.138" "8.8.8.8" ]; # Pi-hole, router, Google DNS fallback
|
||||
|
||||
# Additional firewall ports for file server services
|
||||
firewall.allowedTCPPorts = [
|
||||
firewall = {
|
||||
# Trust the Tailscale interface for mesh network access
|
||||
trustedInterfaces = [ "tailscale0" ];
|
||||
|
||||
allowedTCPPorts = [
|
||||
22 # SSH
|
||||
111 # NFS portmapper
|
||||
2049 # NFS
|
||||
|
@ -50,7 +54,7 @@
|
|||
# Add additional ports here as needed
|
||||
];
|
||||
|
||||
firewall.allowedUDPPorts = [
|
||||
allowedUDPPorts = [
|
||||
22 # SSH
|
||||
111 # NFS portmapper
|
||||
2049 # NFS
|
||||
|
@ -58,4 +62,5 @@
|
|||
138 # NetBIOS Datagram Service
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -7,8 +7,9 @@
|
|||
services.nfs.server = {
|
||||
enable = true;
|
||||
# Export the storage directory (ZFS dataset)
|
||||
# Allow access from both local network and Tailscale network
|
||||
exports = ''
|
||||
/mnt/storage 10.0.0.0/24(rw,sync,no_subtree_check,no_root_squash)
|
||||
/mnt/storage 10.0.0.0/24(rw,sync,no_subtree_check,no_root_squash) 100.64.0.0/10(rw,sync,no_subtree_check,no_root_squash)
|
||||
'';
|
||||
# Create exports on startup
|
||||
createMountPoints = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue