[opensuse] Setting up NFS with Suse 10.2
Hello I'm looking to set up Suse 10.2 to share files between several computers in my home via a wireless router. [Linksys WRT54GL] The router is the connection to the internet btw. I would like to use NFS but having never done so before I'm looking for some advice and/or links to how-to files for SUSE. Currently I have installed the NFS software for client and server on the main machine and my laptop and have tried to get them to talk to each other with no luck. All my attempts at configuration have been done with the YAST2 modules since I figure that is the most fool-proof method. Q: Do I need to have NIS server setup? The machines get their addresses from the router's DHCP. Is this relevant? Q: Is there a special configuration I need to do within the router? VPN? Q; Is there a better way? Samba, iFolder? Thanks in advance, Tim -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Onsdag 27 december 2006 20:33 skrev Tim Erickson:
Hello
I'm looking to set up Suse 10.2 to share files between several computers in my home via a wireless router. [Linksys WRT54GL] The router is the connection to the internet btw. I would like to use NFS but having never done so before I'm looking for some advice and/or links to how-to files for SUSE. Currently I have installed the NFS software for client and server on the main machine and my laptop and have tried to get them to talk to each other with no luck. All my attempts at configuration have been done with the YAST2 modules since I figure that is the most fool-proof method.
Q: Do I need to have NIS server setup? The machines get their addresses from the router's DHCP. Is this relevant?
Q: Is there a special configuration I need to do within the router? VPN?
Q; Is there a better way? Samba, iFolder?
Thanks in advance,
Tim
Hi, You don't need a NIS setup. You don't need anything special in your router. I think the best way is to manually edit /etc/exports and /etc/fstab and then use YaST to start the NFS server service. This is your server.../etc/exports /home/somedir/ashareddirectory 10.0.0.0/255.255.255.0(rw,sync) #the PATH of the shared stuff the network/mask some options In YaST, select network services, start the NFS server. This is your client..one of many, in /etc/fstab do something like... 10.0.0.30:/home/somedir/ashareddirectory /home/someuser/some-directory nfs rw,rsize=8192,wsize=8192 (all of the above in one line) Does this help? -- ------------------------------------------------------------------------- Med venlig hilsen/Best regards Verner Kjærsgaard SuSE10.2 2.6.18.2-34-default 8:36pm oppe 2:09, 4 users, belastningennemsnit: 0,09, 0,18, 0,24 ------------------------------------------------------------------------- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Onsdag 27 december 2006 20:47 skrev Verner Kjærsgaard:
Onsdag 27 december 2006 20:33 skrev Tim Erickson:
Hello
I'm looking to set up Suse 10.2 to share files between several
text cut away..
Does this help? --
------------------------------------------------------------------------- Med venlig hilsen/Best regards Verner Kjærsgaard SuSE10.2 2.6.18.2-34-default 8:36pm oppe 2:09, 4 users, belastningennemsnit: 0,09, 0,18, 0,24 -------------------------------------------------------------------------
I forgot, beware of the firewall in your server. Best, shut it down while experienting, then back on. I don't remember which ports to open, ask the list :-) -- ------------------------------------------------------------------------- Med venlig hilsen/Best regards Verner Kjærsgaard -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 2006-12-27 13:52, Verner Kjærsgaard wrote:
<snip>
I don't remember which ports to open, ask the list :-)
Port nfs, perhaps? :-) -- The best way to accelerate a computer running Windows is at 9.81 m/s² -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wednesday 27 December 2006 14:09, Darryl Gregorash wrote: On 2006-12-27 13:52, Verner Kjærsgaard wrote:
<snip>
I don't remember which ports to open, ask the list :-)
Port nfs, perhaps? :-) -- The best way to accelerate a computer running Windows is at 9.81 m/s² ============================================= Actually, it is not qute that easy. NFS dynamically allocates several high ports. Search for NFS firewall ports, there are numerous directions on how to use specific ports to allow usage through a firewall -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed, Dec 27, 2006 at 02:19:41PM -0600, Wade Jones wrote:
Actually, it is not qute that easy. NFS dynamically allocates several high ports. Search for NFS firewall ports, there are numerous directions on how to use specific ports to allow usage through a firewall
NFS is pretty insecure. Might as well just disable the firewall and invite the internet to the Open House on your system. Michael -- If a kid asks where rain comes from, I think a cute thing to tell him is "God is crying." And if he asks why God is crying, another cute thing to tell him is "Probably because of something you did." San Francisco, CA -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed, 2006-12-27 at 12:36 -0800, Michael Nelson wrote:
NFS is pretty insecure. Might as well just disable the firewall and invite the internet to the Open House on your system.
I think you're confusing the issue. People are talking about the SUSE firewall on the NFS server box. According to the OP, this is all internal to his network. The 'real' firewall to the Internet is a wireless router. OTOH, you could offer an alternative solution to NFS. Cheers, Dave -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wednesday 27 December 2006 14:36, Michael Nelson wrote: On Wed, Dec 27, 2006 at 02:19:41PM -0600, Wade Jones wrote:
Actually, it is not qute that easy. NFS dynamically allocates several high ports. Search for NFS firewall ports, there are numerous directions on how to use specific ports to allow usage through a firewall
NFS is pretty insecure. Might as well just disable the firewall and invite the internet to the Open House on your system. Michael ================================================ There is always a trade-off between convenience and security. I would prefer not to use a floppy disk to access the 25+GB of data on my server. I think I will just take my chances with my NFS server ;-) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed, 2006-12-27 at 14:09 -0600, Darryl Gregorash wrote:
On 2006-12-27 13:52, Verner Kjærsgaard wrote:
<snip>
I don't remember which ports to open, ask the list :-)
Port nfs, perhaps? :-)
grep nfs /etc/services reveals: nfs 2049/tcp # Network File System - Sun Microsystems nfs 2049/udp # Network File System - Sun Microsystems so you need to open port 2049 both tcp and udp -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Dec 27 2006 15:40, Kenneth Schneider wrote:
grep nfs /etc/services reveals:
nfs 2049/tcp # Network File System - Sun Microsystems nfs 2049/udp # Network File System - Sun Microsystems
so you need to open port 2049 both tcp and udp
Plus portmap (111) mountd (dynamic, only with repeated effort made static) and whatnot. It's what makes NFS suck. -`J' -- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jan Engelhardt wrote:
On Dec 27 2006 15:40, Kenneth Schneider wrote:
grep nfs /etc/services reveals:
nfs 2049/tcp # Network File System - Sun Microsystems nfs 2049/udp # Network File System - Sun Microsystems
so you need to open port 2049 both tcp and udp
Plus portmap (111) mountd (dynamic, only with repeated effort made static) and whatnot. It's what makes NFS suck.
Right, you have to open
- - portmap (111)
- - nfs (2049)
- - some port where you want to run mountd on [1]
[1] you must also configure mountd (on the NFS server) to always use the
same port -- that can be achieved by setting
MOUNTD_PORT="2222"
(or whatever port) in /etc/sysconfig/nfs
(and rcnfsserver restart after changing that file)
On the client side, tell the NFS mount to use that port, by setting the
"mountport=...." option in /etc/fstab, e.g.
nfsserver:/some/export/dir /some/local/mountpoint nfs \
tcp,mountport=2222,rsize=8192,wsize=8192,retry=10,bg,soft 0 0
cheers
- --
-o) Pascal Bleser http://linux01.gwdg.de/~pbleser/
/\\
On Wed, 2006-12-27 at 20:52 +0100, Verner Kjærsgaard wrote:
Onsdag 27 december 2006 20:47 skrev Verner Kjærsgaard:
Onsdag 27 december 2006 20:33 skrev Tim Erickson:
Hello
I'm looking to set up Suse 10.2 to share files between several
text cut away..
I forgot, beware of the firewall in your server. Best, shut it down while experienting, then back on. I don't remember which ports to open, ask the list :-)
Tim, Don't know anything about 10.2 but I doubt it's changed much. NFS is very stable. Verner is right. NFS is easy if you RTFM first. man nfs, man exports. Once you have the /etc/exports file set up on the server, the basic command on the server is 'exportfs -a'. Once you have the /etc/fstab file set up on the client the basic command is 'mount -a'. The firewall is the gotcha. For that reason, I might use YaST to set up the server (or just turn the firewall off as verner suggests). But if you do use YaST, go and check /etc/exports and /etc/fstab by hand. Make sure that you understand what each option is for and that it's what you want (hint: the default that YaST sets in /etc/exports isn't what I'd want) HTH, Dave PS Don't use NIS! -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Onsdag 27 december 2006 20:33 skrev Tim Erickson:
I'm looking to set up Suse 10.2 to share files between several computers in my home via a wireless router. [Linksys WRT54GL] The router is the connection to the internet btw. I would like to use NFS but having never done so before I'm looking for some advice and/or links to how-to files for SUSE. Q: Do I need to have NIS server setup? The machines get their addresses from the router's DHCP. Is this relevant?
Q: Is there a special configuration I need to do within the router? VPN?
Q; Is there a better way? Samba, iFolder?
Thanks in advance,
Tim
===================================================== In the absence of a NIS server, the UID and password of the current user on the NFS client must match a UID and password on the NFS server. (The purpose of NIS is to centralize authentication, to avoid the labor of manually matching UID's and passwords across systems.) (It saves me a lot of work, even on my small network, but may not be worth the setup effort for your needs) In the context of your LAN, the router only acts as a switch (ok, it's also a DHCP server), it's routing/firewall functions are not relevant. I would suggest using a static IP for the NFS server, and putting an entry in /etc/hosts on the client(s). NFS is the native file sharing protocol of *nix, just as Samba is based on the native file sharing protocol of Windows; IMHO using the native method of the OS will yield the best results, only use a non-native method when cross-platfrom compatibility is needed. Try a Google search for NFS howto; TLDP does a great job of explaning how to set this up. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Thought I'd update the situation, I've gotten Samba to work between machines so thats a start. I'm still fussing about with the NFS setup but haven't tried all the suggestions made here yet. I'll let you know when that works out. Thanks for all the help, it is appreciated. Tim -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (9)
-
Darryl Gregorash
-
Dave Howorth
-
Jan Engelhardt
-
Kenneth Schneider
-
Michael Nelson
-
Pascal Bleser
-
Tim Erickson
-
Verner Kjærsgaard
-
Wade Jones