LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   can't share directory using NFS (http://www.linuxquestions.org/questions/linux-networking-3/cant-share-directory-using-nfs-363006/)

hedpe 09-13-2005 01:51 PM

can't share directory using NFS
 
Hey all,

I tried following this guide to mount a school directory via NFS from my home gentoo machine to my school gentoo machine:
http://gentoo-wiki.com/HOWTO_Share_Directories_via_NFS

But whenever i try to mount it, I get:
Code:

thorium-ini hedpe# mount 128.237.247.74:/home/hedpe/PacketSwitching /tmp
mount: RPC: Remote system error - Connection timed out

My Port forwards in my linksys router:
Code:

portmap    111        192.168.1.100  111    both
nfs            2049      192.168.1.100  2049  both
nfs2          4001      192.168.1.100  4001  both
nfs_mount  32764-32767  192.168.1.100  both

Here is my /etc/exports:
Code:

hedpe@monster ~ $ cat /etc/exports
# /etc/exports: NFS file systems being exported.  See exports(5).
/home/hedpe/school/PacketSwitching 128.2.140.234(async,no_subtree_check,rw)

rpcinfo:
Code:

monster hedpe # rpcinfo -p
  program vers proto  port
    100000    2  tcp    111  portmapper
    100000    2  udp    111  portmapper
    100024    1  udp  32765  status
    100024    1  tcp  32765  status
    100003    2  udp  2049  nfs
    100003    3  udp  2049  nfs
    100021    1  udp  4001  nlockmgr
    100021    3  udp  4001  nlockmgr
    100021    4  udp  4001  nlockmgr
    100005    1  udp  32767  mountd
    100005    1  tcp  32767  mountd
    100005    2  udp  32767  mountd
    100005    2  tcp  32767  mountd
    100005    3  udp  32767  mountd
    100005    3  tcp  32767  mountd

i'm not sure if this makes a difference,

but my /etc/hostname and /etc/domainname are not resolvable by the machine that is trying to map one of these drives

for instance:
Code:

hedpe@monster ~ $ cat /etc/conf.d/hostname
# /etc/conf.d/hostname
# $Header: /var/cvsroot/gentoo-src/rc-scripts/etc/conf.d/hostname,v 1.2.4.1 2005/02/19 02:13:53 vapier Exp $

# Set to the hostname of this machine
HOSTNAME="monster"

Code:

hedpe@monster ~ $ cat /etc/conf.d/domainname
OVERRIDE=1
DNSDOMAIN="hednet"

so, the computer that I am trying to map the drive cannot ping "monster" for instance, and hednet does not exist

not sure if this is related

i can post more information if anyone needs it

Thanks!
George

R4z0r 09-13-2005 04:40 PM

Is NFS accessible from the internet on the remote box? Try running "nmap 128.237.247.74" on your box and checking that nfs is actually listening and available.

If it is, take a look at "/var/log/messages" on the remote box to see what the error is.

The fact that you are getting a timeout means it's most likey a firewall issue somewhere.

hedpe 09-13-2005 09:05 PM

it seems as if i do not see it:

Code:

monster hedpe # nmap 128.237.247.74

Starting nmap 3.81 ( http://www.insecure.org/nmap/ ) at 2005-09-13 21:05 EDT
Interesting ports on CMU-152988.WV.CC.cmu.edu (128.237.247.74):
(The 1658 ports scanned but not shown below are in state: closed)
PORT    STATE SERVICE
22/tcp  open  ssh
23/tcp  open  telnet
53/tcp  open  domain
80/tcp  open  http
443/tcp open  https

Nmap finished: 1 IP address (1 host up) scanned in 2.349 seconds

here is my local scan:
Code:

monster hedpe # nmap 127.0.0.1

Starting nmap 3.81 ( http://www.insecure.org/nmap/ ) at 2005-09-13 21:06 EDT
Interesting ports on monster (127.0.0.1):
(The 1660 ports scanned but not shown below are in state: closed)
PORT    STATE SERVICE
22/tcp  open  ssh
80/tcp  open  http
111/tcp open  rpcbind

Nmap finished: 1 IP address (1 host up) scanned in 0.202 seconds

i seem to have the ports forwarded in my router... is there a software firewall in linux that I don't know about?

hedpe 09-13-2005 09:16 PM

okay, it seemed as though my router needed rebooted after adding the port forwarding

anyways, it works, and nmap was a big help to solving the problem

thanks!


All times are GMT -5. The time now is 03:14 PM.