[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
howtos:network_services:home_nfs_howto [2018/02/23 13:01 (UTC)] – Additional information for 14.2-current and minor layout updates allend | howtos:network_services:home_nfs_howto [2019/04/06 13:49 (UTC)] – Using proper section headers ellendhel | ||
---|---|---|---|
Line 1: | Line 1: | ||
<!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> | <!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> | ||
< | < | ||
+ | |||
====== Home NFS Setup HOWTO ====== | ====== Home NFS Setup HOWTO ====== | ||
+ | |||
This is a quick guide to setting up NFS in Slackware for use in a home LAN. The example used is for connection of a laptop computer with a desktop computer that also has an NTFS partition mounted on /music. It assumes that basic network connectivity has been established. | This is a quick guide to setting up NFS in Slackware for use in a home LAN. The example used is for connection of a laptop computer with a desktop computer that also has an NTFS partition mounted on /music. It assumes that basic network connectivity has been established. | ||
This guide is largely cut and pasted from other more definitive documents. | This guide is largely cut and pasted from other more definitive documents. | ||
Line 26: | Line 28: | ||
Both computers will be setup to act as NFS servers as well as clients. | Both computers will be setup to act as NFS servers as well as clients. | ||
- | ** - Access settings | + | ===== Access settings |
**/ | **/ | ||
Line 60: | Line 62: | ||
mountd: 10.1.1.2 | mountd: 10.1.1.2 | ||
statd: 10.1.1.2</ | statd: 10.1.1.2</ | ||
- | The syntax in the above examples can be altered, e.g. 10.1.1. could be used to allow access from any machine on the 10.1.1.1/255 network | + | The syntax in the above examples can be altered, e.g. 10.1.1. could be used to allow access from any machine on the 10.1.1.0/24 network |
**/ | **/ | ||
Line 76: | Line 78: | ||
* The no_root_squash option is very permissive. The root_squash option is much more secure. | * The no_root_squash option is very permissive. The root_squash option is much more secure. | ||
- | * Allowing access to the entire root file system is very permissive. Restriction to a subdirectory | + | * Allowing access to the entire root file system is very permissive. Restriction to a sub-directory |
* The nohide option is required to show the contents of other mounted partitions. | * The nohide option is required to show the contents of other mounted partitions. | ||
- | ** - Daemon startup | + | ===== Daemon startup |
**/ | **/ | ||
Line 90: | Line 92: | ||
Check that this file is executable on both computers. (Not strictly necessary as / | Check that this file is executable on both computers. (Not strictly necessary as / | ||
- | ** - Binding ports -** | + | ===== Binding ports ===== |
**a) Slackware versions up to 14.2** | **a) Slackware versions up to 14.2** | ||
Line 238: | Line 240: | ||
To use NFS through the firewall is now easier, as options for NFS can be set in / | To use NFS through the firewall is now easier, as options for NFS can be set in / | ||
- | **/ | + | **/ |
< | < | ||
Line 270: | Line 272: | ||
#</ | #</ | ||
- | ** - Firewall settings | + | ===== Firewall settings |
**/ | **/ | ||
Line 291: | Line 293: | ||
$IPTABLES -A INPUT -i $EXTIF -p udp -s $LOCAL_LAN --dport 32766 -j ACCEPT | $IPTABLES -A INPUT -i $EXTIF -p udp -s $LOCAL_LAN --dport 32766 -j ACCEPT | ||
# Accept TCP and UDP on port 32767 from local LAN for mountd | # Accept TCP and UDP on port 32767 from local LAN for mountd | ||
- | # (set in / | + | # (set in / |
$IPTABLES -A INPUT -i $EXTIF -p tcp -s $LOCAL_LAN --dport 32767 -j ACCEPT | $IPTABLES -A INPUT -i $EXTIF -p tcp -s $LOCAL_LAN --dport 32767 -j ACCEPT | ||
$IPTABLES -A INPUT -i $EXTIF -p udp -s $LOCAL_LAN --dport 32767 -j ACCEPT | $IPTABLES -A INPUT -i $EXTIF -p udp -s $LOCAL_LAN --dport 32767 -j ACCEPT | ||
# Accept TCP and UDP on port 32768 from local LAN for lockd | # Accept TCP and UDP on port 32768 from local LAN for lockd | ||
- | # (set in / | + | # (set in / |
$IPTABLES -A INPUT -i $EXTIF -p tcp -s $LOCAL_LAN --dport 32768 -j ACCEPT | $IPTABLES -A INPUT -i $EXTIF -p tcp -s $LOCAL_LAN --dport 32768 -j ACCEPT | ||
$IPTABLES -A INPUT -i $EXTIF -p udp -s $LOCAL_LAN --dport 32768 -j ACCEPT | $IPTABLES -A INPUT -i $EXTIF -p udp -s $LOCAL_LAN --dport 32768 -j ACCEPT | ||
# Accept TCP and UDP on port 32769 from local LAN for rquotad | # Accept TCP and UDP on port 32769 from local LAN for rquotad | ||
- | # (set in / | + | # (set in / |
$IPTABLES -A INPUT -i $EXTIF -p tcp -s $LOCAL_LAN --dport 32769 -j ACCEPT | $IPTABLES -A INPUT -i $EXTIF -p tcp -s $LOCAL_LAN --dport 32769 -j ACCEPT | ||
$IPTABLES -A INPUT -i $EXTIF -p udp -s $LOCAL_LAN --dport 32769 -j ACCEPT | $IPTABLES -A INPUT -i $EXTIF -p udp -s $LOCAL_LAN --dport 32769 -j ACCEPT | ||
Line 312: | Line 314: | ||
====== Sources ====== | ====== Sources ====== | ||
+ | |||
* http:// | * http:// | ||
* http:// | * http:// |