PDA

View Full Version : NFS configuration


LinuxHippy
2005-05-06, 07:03 AM CDT
How do I configure NFS for using port 2049 and accepting a particular pc or ip address?

AndyGreen
2005-05-06, 07:07 AM CDT
NFS is famous for wandering around using whatever ports it feels like, and plenty of 'em too. Does it have to be NFS or will Samba do? What are you trying to acheive?

LinuxHippy
2005-05-06, 02:34 PM CDT
I'd like to mount my networked Slackware laptop to my FC3 box's 2nd harddrive so that I can use my 2nd harddrive in my tower as a place to backup files. I'd also like to be able to stop and start processes in my laptop from my tower. I'm not sure how to get Samba configured in Slackware, but I have it set up for ftp (it works) and I have been advised how to set up NFS in Slackware and then mount it. I'm just not sure how to set up NFS in FC3 to allow a networked connection.

Looking at nmap of 127.0.0.1 I see that FC3 already has port 2049 open for NFS. What else do I need to do to configure NFS in FC3?

deneb
2005-05-06, 02:40 PM CDT
Like AndyGreen said. The ports used by NFS are managed by portmap. Don't know which scheme is behind. But in fact to make NFS work, you will need to shut down iptables or make it anyhow dynamically configured. Then simply edit /etc/exports.

example entry: /pub 192.168.0.*(ro,all_squash,anonuid=500,anongid=500)
then run system-config-services to configure runlevels at which nfs should start.
on the guestmachine mount the nfs-share simply with: mount -tnfs 192.168.0.1:/pub /mnt/nfs
(of course replace with your servers ip / directory and your mountpoint).
To do this automatically you can add a entry in /etc/fstab like this:
192.168.0.1:/pub /mnt/nfs nfs ro 1 1

by the way. the loopback device 127.0.0.1 (localhost) isn't responsible for outgoing network traffic. hope you have another configured networkdevice :)