LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-15-2005, 09:34 PM   #1
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
NFS problem - connection refused from distant host


My ip adress is 192.168.0.44 on eth0

/etc/exports is :
Code:
/clients/root 192.168.0.0/255.255.255.0(rw,no_root_squash)
/clients/root 127.0.0.1/255.255.255.255(rw,no_root_squash)
/home          192.168.0.0/255.255.255.0(rw)
/etc/hosts.allow is empty (only comments)
/etc/hosts.deny is empty (only comments)

This works :
# mount 127.0.0.1:/clients/root /mnt

This doesn't work :
# mount 192.168.0.44:/clients/root /mnt
mount: RPC: erreur système sur l'hôte cible - Connexion refusée
(in english : system error on target host - connection refused)

Code:
$ rpcinfo -p
   program no_version protocole  no_port
    100000    2   tcp    111  portmapper
    100000    2   udp    111  portmapper
    100003    2   udp   2049  nfs
    100003    3   udp   2049  nfs
    100003    4   udp   2049  nfs
    100003    2   tcp   2049  nfs
    100003    3   tcp   2049  nfs
    100003    4   tcp   2049  nfs
    100021    1   udp  32768  nlockmgr
    100021    3   udp  32768  nlockmgr
    100021    4   udp  32768  nlockmgr
    100021    1   tcp  32768  nlockmgr
    100021    3   tcp  32768  nlockmgr
    100021    4   tcp  32768  nlockmgr
    100005    1   udp    672  mountd
    100005    1   tcp    675  mountd
    100005    2   udp    672  mountd
    100005    2   tcp    675  mountd
    100005    3   udp    672  mountd
    100005    3   tcp    675  mountd
    100024    1   udp   1009  status
    100024    1   tcp   1012  status
$ rpcinfo -p 192.168.0.44
rpcinfo: ne peut contacter l'aiguilleur de ports: RPC: erreur système sur l'hôte cible - Connexion refusée
iptables rules are empty (ACCEPT policy).
any idea why I can't connect to 192.168.0.44 with rpc?
 
Old 10-16-2005, 06:40 PM   #2
uberNUT69
Member
 
Registered: Jan 2005
Location: Tasmania
Distribution: Xen Debian Lenny/Sid
Posts: 578

Rep: Reputation: 30
I think you'll find you need something like the following:

1. In /etc/hosts define your machine, eg:
127.0.0.1 localhost.localdomain localhost myworkstation
192.168.0.44 myworkstation

2. Allow access to the nfs daemon and portmapper in /etc/hosts.allow, eg
portmap,nfsd: myworkstation
 
Old 10-17-2005, 02:24 PM   #3
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Original Poster
Rep: Reputation: 80
thanks.
I got is working.
I restarted portmap because ubuntu was lauching it at startup with -i 127.0.0.1.
I killed it and restarted it with no option.
It works now.
 
Old 10-17-2005, 02:24 PM   #4
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Original Poster
Rep: Reputation: 80
duplicate post

Last edited by Agrouf; 10-17-2005 at 02:26 PM.
 
Old 10-17-2005, 02:24 PM   #5
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Original Poster
Rep: Reputation: 80
triplicate post.
 
  


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
ssh and nfs connections refused by Linux host running RedHat 9.0 and having 2 NIC erinduffy Linux - Networking 1 01-21-2005 11:13 AM
Connection Refused Problem sangjin Linux - Newbie 1 12-30-2003 06:43 AM
distant connection to mac os 9 [newbie] aseedb Linux - Networking 2 11-28-2003 07:54 AM
distant connection to mac os 9 [newbie] aseedb Linux - Newbie 0 11-27-2003 06:57 AM
telnet: Unable to connect to remote host: Connection refused batham Linux - Networking 0 07-07-2003 05:29 PM

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

All times are GMT -5. The time now is 04:47 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