LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 09-06-2010, 12:29 PM   #1
chymeira
Member
 
Registered: Dec 2008
Location: CH/IL
Distribution: Slackware 13.1 Fedora 12
Posts: 73

Rep: Reputation: 16
Slackware nfs


Hello all,

I am trying to connect to a nfs server on my local network ( the server is a fedora 12 box ) using slackware 13.1 but I am having some problems.
First of all I am sure that the server is configured ok and my desktop can ping the server but when I try :

mount -t nfs 10.0.0.1:/home/usr/file /home/usr/tmp
I get the following error : mount.nfs: No route to host

And when I try to rpcinfo -p 10.0.0.1 I get the error :
rpcinfo: can't contact portmapper: RPC: Remote system error - No route to host

I researched online and some said that if im having problems like that I should configure iptables, but Im new to slackware and I dont know how to resolve the problem.

Thank you very much
 
Old 09-06-2010, 01:51 PM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Check that on your Slackware machine /etc/rc.d/rc.rpc is executable. That starts portmapper on the client side.


Quote:
mount -t nfs 10.0.0.1:/home/usr/file /home/usr/tmp
I just want to double check that 10.0.0.1 is the IP address of your NFS server.

Quote:
I researched online and some said that if im having problems like that I should configure iptables, but Im new to slackware and I dont know how to resolve the problem.
Please post the output of iptables -L -n from the Slackware machine. You'll also might want to read this on locking down some of the ports on the server side. If you've got a firewall on the Fedora box, you'll need to keep NFS ports constant.
 
Old 09-06-2010, 02:12 PM   #3
chymeira
Member
 
Registered: Dec 2008
Location: CH/IL
Distribution: Slackware 13.1 Fedora 12
Posts: 73

Original Poster
Rep: Reputation: 16
This is the output of the command : iptables -L -n

Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
TRUSTED all -- 0.0.0.0/0 0.0.0.0/0 state NEW

Chain FORWARD (policy DROP)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
DROP icmp -- 0.0.0.0/0 0.0.0.0/0 state INVALID

Chain TRUSTED (1 references)
target prot opt source destination
DROP all -- 0.0.0.0/0 0.0.0.0/0
 
Old 09-06-2010, 03:37 PM   #4
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Is that from Slackware or the Fedora machine? If it is from the Slackware machine it might work since it would be initiating the connections and anything coming back is likely to be RELATED/ESTABLISHED. If it is on the Fedora server, it looks to me like the TRUSTED chain will drop all incoming NEW connections, in which case you're never going to establish a connection. That TRUSTED chain might also screw up the Slackware machine since I'm not entirely sure that once the NFS client initiates the connection, everything coming back is going to be RELATED/ESTABLISHED.

It might be worth dropping the firewall on both machines and see if you can make a connection then.
 
Old 09-06-2010, 03:44 PM   #5
chymeira
Member
 
Registered: Dec 2008
Location: CH/IL
Distribution: Slackware 13.1 Fedora 12
Posts: 73

Original Poster
Rep: Reputation: 16
That output was from the slackware (client) machine.
How to I shut down the slackware firewall ? I tried iptables stop but it didnt work .

When I shut down iptables on fedora ( server ) I got the following error when trying to mount :
mount.nfs: access denied by server while mounting 10.0.0.1:/home/usr/file

Ive set hosts.allow to allow 10.0.0.2 ( client ) to connect . Permissions are ok on the file too.

Thank you

Last edited by chymeira; 09-06-2010 at 03:58 PM.
 
Old 09-06-2010, 03:59 PM   #6
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Slackware usually has its firewall in /etc/rc.d/rc.firewall. Otherwise try (as root)

iptables INPUT -F
iptables OUTPUT -F
iptables TRUSTED -F
 
  


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
[SOLVED] NFS mount fails (times out): NFS server is in DMZ, NFS client is in intranet Hiroshi Linux - Networking 2 05-24-2010 10:22 AM
Can't connect from slackware nfs client to rhel nfs server llattan Linux - Server 2 04-21-2009 09:49 AM
Slackware installation via NFS a24011981 Slackware - Installation 9 07-20-2006 11:47 AM
Slackware 8.1 NFS Client Help DrLazardo Linux - Networking 11 05-13-2003 08:16 AM
slackware 9 NFS red21 Slackware 1 05-08-2003 11:40 PM

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

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