LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-18-2014, 12:57 PM   #1
hapibeli
Member
 
Registered: Apr 2011
Location: Galiano Island, BC
Distribution: Linux Mint
Posts: 30

Rep: Reputation: 0
My NSF setup good? bad? Please?


How does my /etc/exports file look? Any Problems?

How about my /etc/hosts.allow ?

# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
#
/export 192.168.1.0/24(rw,fsid=0,insecure,no_subtree_check,async)
/export/users 192.168.1.0/24(rw,nohide,insecure,no_subtree_check,async)

/var/nfs * (ro,async,subtree_check)

/var/nfs 192.168.1.1/24 (ro,async,subtree_check)

/home 192.168.0.104(rw,sync,no_root_squash,no_subtree_check)
/var/nfs 192.168.0.104(rw,sync,no_subtree_check)






# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
#
/export 192.168.1.0/24(rw,fsid=0,insecure,no_subtree_check,async)
/export/users 192.168.1.0/24(rw,nohide,insecure,no_subtree_check,async)

/var/nfs * (ro,async,subtree_check)

/var/nfs 192.168.1.1/24 (ro,async,subtree_check)

/home 192.168.0.104(rw,sync,no_root_squash,no_subtree_check)
/var/nfs 192.168.0.104(rw,sync,no_subtree_check)
 
Old 02-19-2014, 07:58 AM   #2
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,756

Rep: Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524
do you have any OSx users that will be connecting to the NFS share?

If not, then drop the insecure line, it will not be required for Linux users, its only required for OSx users as for some reason Apple is not keeping up to date with their NFS connection services. In fact OSx is still stuck in NFSv3 world they are so far behind.
 
Old 02-19-2014, 11:07 AM   #3
hapibeli
Member
 
Registered: Apr 2011
Location: Galiano Island, BC
Distribution: Linux Mint
Posts: 30

Original Poster
Rep: Reputation: 0
Talking My NSF setup good? bad? Please?

Thanks Lieb, I have no OSx users, so which is the Mac users line??
I've just been following instructions from Ubuntu howtos. I'm not even sure how to use NFS when it is in place!




Quote:
Originally Posted by lleb View Post
do you have any OSx users that will be connecting to the NFS share?

If not, then drop the insecure line, it will not be required for Linux users, its only required for OSx users as for some reason Apple is not keeping up to date with their NFS connection services. In fact OSx is still stuck in NFSv3 world they are so far behind.
 
Old 02-19-2014, 09:32 PM   #4
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,756

Rep: Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524
i told you. its the word insecure. that is used 99.99% of time only if you have OSx in your network accessing the shares.

here is my exports:

Code:
$ cat /etc/exports 
#
#	/etc/exports

#	NFS4
/exports *(rw,insecure,subtree_check,crossmnt,fsid=0)

#	NFSv3
/exports/centos/public *(rw,insecure,no_subtree_check,fsid=3010)
/exports/NFS_TV_Shows *(rw,insecure,no_subtree_check,fsid=3020)
few things to note.

1. i have the insecure as i have OSx in my network.
2. note that each and every export line has its own fsid. this is a good habit.
3. note i also support both NFSv3 and NSFv4, this again is due to having OSx in my network.
 
Old 02-19-2014, 11:49 PM   #5
hapibeli
Member
 
Registered: Apr 2011
Location: Galiano Island, BC
Distribution: Linux Mint
Posts: 30

Original Poster
Rep: Reputation: 0
Thank you Lieb! Sorry for my inattention. Here is/etc/hosts.allow in its new state;

# /etc/hosts.allow: list of hosts that are allowed to access the system.
# See the manual pages hosts_access(5) and hosts_options(5).
#
# Example: ALL: LOCAL @some_netgroup
# ALL: .foobar.edu EXCEPT terminalserver.foobar.edu
#
# If you're going to protect the portmapper use the name "portmap" for the
# daemon name. Remember that you can only use the keyword "ALL" and IP
# addresses (NOT host or domain names) for the portmapper, as well as for
# rpc.mountd (the NFS mount daemon). See portmap(8) and rpc.mountd(8)
# for further information.
#

rpcbind mountd nfsd statd lockd rquotad : 127.0.0.1 192.168.0.101 192.168.0.103 192.168.0.104 192.168.0.105 192.168.0.102

/export 192.168.1.0/24(rw,fsid=0,no_subtree_check,async)
/export/users 192.168.1.0/24(rw,nohide,no_subtree_check,async)

/var/nfs * (ro,async,subtree_check)

/var/nfs 192.168.1.1/24 (ro,async,subtree_check)

/home 192.168.0.104(rw,sync,no_root_squash,no_subtree_check)
/var/nfs 192.168.0.104(rw,sync,no_subtree_check)


cat /etc/exports
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
#

/export 192.168.1.0/24(rw,fsid=0,no_subtree_check,async)
/export/users 192.168.1.0/24(rw,nohide,no_subtree_check,async)

/var/nfs * (ro,async,subtree_check)

/var/nfs 192.168.1.1/24 (ro,async,subtree_check)

/home 192.168.0.104(rw,sync,no_root_squash,no_subtree_check)
/var/nfs 192.168.0.104(rw,sync,no_subtree_check)

Last edited by hapibeli; 02-19-2014 at 11:58 PM. Reason: adding info
 
Old 02-20-2014, 01:01 PM   #6
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,756

Rep: Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524
code flags are you friend, please use them. again you do not have fsid on each of your shares. id look into that if i were you.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: IBM Sun acquisition : Good for Unix. Good for Linux. Bad for HP LXer Syndicated Linux News 0 03-18-2009 12:00 PM
How can you tell that someone is bad? or Good ? someone is bad? or Good ? abrenar General 10 02-24-2009 03:42 PM
Multi-distro partition setup; does this sound like a good setup? Twilight in Zero Linux - General 5 02-22-2009 01:15 AM
LXer: You only know good when you've seen bad... LXer Syndicated Linux News 0 03-12-2008 08:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration