LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 05-19-2005, 04:24 AM   #1
DaneM
Member
 
Registered: Oct 2003
Location: Chico, CA, USA
Distribution: Linux Mint
Posts: 734

Rep: Reputation: 78
NFS, Shorewall, Slackware 10, kernel 2.6: can't mount!


Hello, everybody!

I'm trying to get NFS running on my Slack 10 box with kernel 2.6.11.8. When I try to mount it from another machine OR the server, I get this:

Code:
</home/dane/tmp>
[root@Orchestrator tmp]$ mount 192.168.1.250:/var/nfs /mnt/nfs
mount: 192.168.1.250:/var/nfs failed, reason given by server: Permission denied
Here is my /etc/exports:

Code:
/var/nfs 192.168.1.0(ro,sync,no_root_squash)
/home/dane 192.168.1.0(ro,sync,no_root_squash)
/mnt/cdrom 192.168.1.0(ro,sync,no_root_squash)
Here is /etc/hosts.allow:

Code:
rpc.lockd: 192.168.1.0
rpc.rquotad: 192.168.1.0
rpc.mountd: 192.168.1.0
rpc.statd: 192.168.1.0
rpc.portmap: 192.168.1.0/255.255.255.0
etc/hosts.deny:

Code:
rpc.portmap:ALL
rpc.lockd:ALL
rpc.mountd:ALL
rpc.quotad:ALL
rpc.statd:ALL
rpcinfo gives me this:

Code:
</home/dane/tmp>
[root@Orchestrator tmp]$ rpcinfo -p
   program vers proto   port
    100000    2   tcp    111  portmapper
    100000    2   udp    111  portmapper
    100011    1   udp    771  rquotad
    100011    2   udp    771  rquotad
    100011    1   tcp    774  rquotad
    100011    2   tcp    774  rquotad
    100003    2   udp   2049  nfs
    100003    3   udp   2049  nfs
    100005    1   udp  32767  mountd
    100005    1   tcp  32767  mountd
    100005    2   udp  32767  mountd
    100021    1   udp  32772  nlockmgr
    100005    2   tcp  32767  mountd
    100021    3   udp  32772  nlockmgr
    100005    3   udp  32767  mountd
    100021    4   udp  32772  nlockmgr
    100005    3   tcp  32767  mountd
    100024    1   udp  32765  status
    100024    1   tcp  32765  status
Here is my firewall configuration (/etc/shorewall/rules):

Code:
     #ACTION  SOURCE         DEST            PROTO   DEST    SOURCE     ORIGINAL     RATE            USER/
     #                                               PORT    PORT(S)    DEST         LIMIT           GROUP
     AllowPing       loc     fw
     AllowPing       loc     net
     AllowSMB        loc     fw
     AllowSMB        fw      loc
     #The next 2 lines are for NFS.  :32768 ?
     ACCEPT          loc     fw              tcp     32765:32780,2049,111
     ACCEPT          loc     fw              udp     32765:32780,2049,111
     AllowPing       fw      loc
     #ACCEPT         loc     fw
     #LAST LINE -- ADD YOUR ENTRIES BEFORE THIS ONE -- DO NOT REMOVE
I have all of my daemons except for lockd pinned down to the ports specified (do you know how to pin down lockd to a port?).

I can ping both machines OK.

I'll be truly grateful for any help you give me.

Thanks!

--Dane

P.S. I found this in my /proc/fs/nfs/exports, which refuses to match /etc/exports no matter how many times I run "exportfs -var".

Code:
/home/dane      192.168.1.0(ro,root_squash,sync,wdelay)
/var/nfs        192.168.1.0(ro,root_squash,sync,wdelay)

Last edited by DaneM; 05-19-2005 at 05:19 AM.
 
Old 05-19-2005, 07:58 AM   #2
PDock
Member
 
Registered: Aug 2004
Distribution: Slack10 & curr. tried numerous
Posts: 189

Rep: Reputation: 36
To export to all pcs on a lan; I use this format

Code:
/var/nfs 192.168.1.0/255.255.255.0(ro,sync,no_root_squash)
/home/dane 192.168.1.0/255.255.255.0(ro,sync,no_root_squash)
/mnt/cdrom 192.168.1.0/255.255.255.0(ro,sync,no_root_squash)
Other than above; unplug internet cable, start with just NFS, add tcpwrappers add firewall replug

ppd
 
Old 05-23-2005, 01:38 AM   #3
DaneM
Member
 
Registered: Oct 2003
Location: Chico, CA, USA
Distribution: Linux Mint
Posts: 734

Original Poster
Rep: Reputation: 78
Thanks for the reply, pdock!

I've since managed to get it working on that box. (Emerde was messing with my config files.) Your suggestion about adding the subnet mask was a big help too. I also found an article on how to pin down lockd to a specific port (more or less). It'll start at the specified port and go up each time the service is restarted.

http://forums.gentoo.org/viewtopic-t...rewalling.html

Thanks for the help.

--Dane
 
  


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
how to mount a nfs mount from linux client to AIX nfs server dennyqian AIX 8 09-22-2006 03:34 AM
nfs warning: mount version older than kernel Yalla-One Slackware 2 09-21-2005 03:00 PM
nfs warning: mount version older than kernel dgermann Linux - Networking 4 07-04-2005 04:30 PM
nfs kernel server dies after first mount JahToasted Linux - Networking 3 09-10-2003 03:43 PM
NFS and Shorewall buttshill Linux - Security 1 01-22-2003 04:36 PM


All times are GMT -5. The time now is 02:12 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration