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,21 +41,26 @@
|
||||||
# nameservers = [ "10.0.0.14" "10.0.0.138" "8.8.8.8" ]; # Pi-hole, router, Google DNS fallback
|
# 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
|
# Additional firewall ports for file server services
|
||||||
firewall.allowedTCPPorts = [
|
firewall = {
|
||||||
22 # SSH
|
# Trust the Tailscale interface for mesh network access
|
||||||
111 # NFS portmapper
|
trustedInterfaces = [ "tailscale0" ];
|
||||||
2049 # NFS
|
|
||||||
445 # SMB/CIFS
|
|
||||||
139 # NetBIOS Session Service
|
|
||||||
# Add additional ports here as needed
|
|
||||||
];
|
|
||||||
|
|
||||||
firewall.allowedUDPPorts = [
|
allowedTCPPorts = [
|
||||||
22 # SSH
|
22 # SSH
|
||||||
111 # NFS portmapper
|
111 # NFS portmapper
|
||||||
2049 # NFS
|
2049 # NFS
|
||||||
137 # NetBIOS Name Service
|
445 # SMB/CIFS
|
||||||
138 # NetBIOS Datagram Service
|
139 # NetBIOS Session Service
|
||||||
];
|
# Add additional ports here as needed
|
||||||
|
];
|
||||||
|
|
||||||
|
allowedUDPPorts = [
|
||||||
|
22 # SSH
|
||||||
|
111 # NFS portmapper
|
||||||
|
2049 # NFS
|
||||||
|
137 # NetBIOS Name Service
|
||||||
|
138 # NetBIOS Datagram Service
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,8 +7,9 @@
|
||||||
services.nfs.server = {
|
services.nfs.server = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# Export the storage directory (ZFS dataset)
|
# Export the storage directory (ZFS dataset)
|
||||||
|
# Allow access from both local network and Tailscale network
|
||||||
exports = ''
|
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
|
# Create exports on startup
|
||||||
createMountPoints = true;
|
createMountPoints = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue