LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-04-2008, 05:21 PM   #16
hasanatizaz
Member
 
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 317
Blog Entries: 1

Rep: Reputation: 35

ok then change 192.168.1.1 to 192.168.1.5 in /etc/exports and restart nfs
 
Old 12-04-2008, 05:55 PM   #17
Pazau
Member
 
Registered: Nov 2008
Location: Copenhagen, Denmark
Distribution: Ubuntu and Xubuntu 8.10
Posts: 98

Original Poster
Rep: Reputation: 15
When I try to connect via IP, Ubuntu says "internal error".
 
Old 12-04-2008, 11:07 PM   #18
hasanatizaz
Member
 
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 317
Blog Entries: 1

Rep: Reputation: 35
see what /var/log/messages has to say ?
 
Old 12-05-2008, 06:32 AM   #19
Pazau
Member
 
Registered: Nov 2008
Location: Copenhagen, Denmark
Distribution: Ubuntu and Xubuntu 8.10
Posts: 98

Original Poster
Rep: Reputation: 15
The log says nohing about NFS. :S
 
Old 12-05-2008, 07:21 AM   #20
Pazau
Member
 
Registered: Nov 2008
Location: Copenhagen, Denmark
Distribution: Ubuntu and Xubuntu 8.10
Posts: 98

Original Poster
Rep: Reputation: 15
I have a idea.

If you tell me what information I need to come up with, so please tell me exactly what I need to do to get it to work.
It is a little easier now that I'm not so good for Linux yet.
 
Old 12-05-2008, 07:33 AM   #21
hasanatizaz
Member
 
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 317
Blog Entries: 1

Rep: Reputation: 35
ok, so far you have setup an ip which is 192.168.1.5 binded to your server, you have got nfs server running on it, what we need to do right now is to check whether we have setup nfs correctly or not to check that try the following on your server,
mount -t nfs 192.168.1.5:/home/nicolas/Musiknumre /nfstesting

where /nfstesting is your mount point, also make sure portmap rpc services are running.
 
Old 12-05-2008, 09:38 AM   #22
Pazau
Member
 
Registered: Nov 2008
Location: Copenhagen, Denmark
Distribution: Ubuntu and Xubuntu 8.10
Posts: 98

Original Poster
Rep: Reputation: 15
Now my Export-file look like this:

# /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 nicolas-desktop(rw,sync) nicolas-laptop(rw,sync)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt)
# /srv/nfs4/homes gss/krb5i(rw,sync)
#
/home/nicolas/Musiknumre 192.168.1.5 (rw,sync)
________________________

When i try "Sudo mount -t nfs 192.168.1.5:/home/nicolas/Musiknumre /nfstesting", it works!
What did it work?
 
Old 12-05-2008, 09:41 AM   #23
Pazau
Member
 
Registered: Nov 2008
Location: Copenhagen, Denmark
Distribution: Ubuntu and Xubuntu 8.10
Posts: 98

Original Poster
Rep: Reputation: 15
And how do I unmount the harddrive again?
 
Old 12-05-2008, 10:00 AM   #24
Pazau
Member
 
Registered: Nov 2008
Location: Copenhagen, Denmark
Distribution: Ubuntu and Xubuntu 8.10
Posts: 98

Original Poster
Rep: Reputation: 15
I find out how i unmount.
 
Old 12-05-2008, 10:05 AM   #25
Pazau
Member
 
Registered: Nov 2008
Location: Copenhagen, Denmark
Distribution: Ubuntu and Xubuntu 8.10
Posts: 98

Original Poster
Rep: Reputation: 15
Now I just missing something knowledge of /etc/hosts.allow and /etc/hosts.deny. a website says that without making use of them, NFS is not safe.

What needs to be in them?
 
Old 12-06-2008, 03:48 AM   #26
hasanatizaz
Member
 
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 317
Blog Entries: 1

Rep: Reputation: 35
i have no idea about how to prevent or allow them from mounting using tcpwrappers.
 
Old 12-06-2008, 05:42 AM   #27
Pazau
Member
 
Registered: Nov 2008
Location: Copenhagen, Denmark
Distribution: Ubuntu and Xubuntu 8.10
Posts: 98

Original Poster
Rep: Reputation: 15
Ok. But thank you very much for you big help!
 
Old 12-06-2008, 06:08 AM   #28
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
There are different ways your nfs server could be running. An xinetd service, as a normal service or using the nfs kernel support. If it is an xinetd service you can either use /etc/hosts.allow, /etc/hosts.deny or use /etc/xinetd.d/nfs to configure access.

If /etc/xinetd.d/nfs exists, you can add an "only_from" entry. This entry could be like "10.1.1.10,12,15" to allow only 10.1.1.10, 10.1.1.12 and 10.1.1.15 access. If you have a small number of client hosts, you could use iptables rules that allow access from just certain hosts and by default drop nfs requests from other hosts. The requests will be either dropped or denied in this case.

To prevent IP spoofing by other hosts on the LAN, you could add MAC address entries to arp.

sudo /sbin/arp -s <ip address> <mac address>

Of course, a user could manually change the MAC and IP address on their host. To totally prevent that, you need to use authentication. If your switch is configurable, then you may be able to configure it to only allow traffic on that port from a particular MAC address. This could provide general arp spoofing protection for your network.
 
  


Reply



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
NFS and RH Cluster Suite; Problems relating services/resources to NFS l_long_island Linux - Server 5 08-30-2008 11:20 AM
Very Slow Exporting during NFS Start / Many NFS Problems VorlonInfoTech Linux - Networking 3 06-28-2006 06:48 PM
NFS problems graham Slackware 2 02-12-2004 05:59 PM
NFS problems Inexactitude Linux - Networking 1 11-29-2003 04:09 PM
NFS problems Syncrm Linux - Networking 6 03-02-2002 05:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:21 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
Open Source Consulting | Domain Registration