LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 02-04-2002, 04:51 PM   #16
kbaldor
LQ Newbie
 
Registered: Jan 2002
Distribution: Red Hat 7.2
Posts: 21

Original Poster
Rep: Reputation: 15
ping still works


We can still ping one another after the ipchains -F command is run.

Let me describe the network briefly, in case this helps:

We have a cable modem, we share it by connecting to a cable modem router which then connects to the uplink plug on our hub. Each computer is conntected to the regular (non-uplink) ethernet plugs on the hub. When I run ping, I can see the lights associated with each machine blink once per second.

Hope that helps
 
Old 02-04-2002, 08:44 PM   #17
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
I'm lost as to what to try next, the nfs is so simple to setup and depends only on a few things which you appear to have.


I just setup a box with redhat 7.1 a few minutes ago

I just setup nfs to see what it would do


here's what I did
machine ip is 12.0.0.8

step 1

/etc/exports
/home 12.0.0.7(ro)

step 2

exportfs -av

step 3

/etc/rc.d/init.d/nfs start


step 4

on machine with ip address 12.0.0.7

mkdir /nfs/home

mount -t nfs 12.0.0.8:/home /nfs/home


Now I got the same error as you because I have a firewall on that interface on the nfs server


so I did this on the machine 12.0.0.8

ipchains -F


then step 4 works fine

Last edited by DavidPhillips; 02-04-2002 at 08:45 PM.
 
Old 02-04-2002, 08:50 PM   #18
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
One thing after running the command ipchains -F

try this

ipchains -L

see if it says accept

for input output and forward






check /var/log/messages for something like this





Feb 4 20:30:45 WWW nfs: Starting NFS services: succeeded
Feb 4 20:30:45 WWW nfs: rpc.rquotad startup succeeded
Feb 4 20:30:45 WWW nfs: rpc.mountd startup succeeded
Feb 4 20:30:45 WWW kernel: Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
Feb 4 20:30:45 WWW nfs: rpc.nfsd startup succeeded
Feb 4 20:30:51 WWW rpc.mountd: dump request from 12.0.0.4 Feb 4 20:33:30 WWW rpc.mountd: authenticated mount request from 12.0.0.7:882 for /home (/home)
 
Old 02-04-2002, 08:54 PM   #19
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
one way to do this is

cat /var/log/messages


or run it like this


tail -f /var/log/messages


then while that's running run
nfs start
exportfs -av

and try to mount from other machine


post the errors
 
Old 02-05-2002, 12:09 AM   #20
kbaldor
LQ Newbie
 
Registered: Jan 2002
Distribution: Red Hat 7.2
Posts: 21

Original Poster
Rep: Reputation: 15
No errors

Nothing printed when the connection was refused

This makes me think that you are correct. Everything should be working, but soething is not connecting correctly.

I wonder if the networking might somehow be the problem. When we installed linux, both machines were called localhost.localdomain. I tried to fix this, but I may have missed something.

Since we only installed linux a few weeks ago and haven't really settled in, I am thinking of re-installing. If I do, would it be a good idea to do a server install on one of the computers rather than doing a workstation install on both?
 
Old 02-05-2002, 12:47 AM   #21
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
I usually install everything, but that's not necessarily a great thing.


That's just the way i like to do it.


what about the ipchains -L was it ok



tcpdump should show the traffic if you have it installed



I tried on mine with firewall up and

tail -f /var/log/messages says nothing

it only reports other errors or success when there's no firewall



however tcpdump shows this traffic even if I get the Connection refused error



tcpdump: listening on all devices
00:48:48.089718 eth0 < 12.0.0.7.920 > WWW.HOME.sunrpc: S [ECN-Echo,CWR] 1278539892:1278539892(0) win 5840 <mss 1460,sackOK,timestamp 359335087 0,nop,wscale 0> (DF)
00:48:48.089786 eth0 > WWW.HOME > 12.0.0.7: icmp: WWW.HOME tcp port sunrpc unreachable [tos 0xc0]
00:48:48.090885 eth0 < 12.0.0.7.921 > WWW.HOME.635: udp 108 (DF)
00:48:48.090955 eth0 > WWW.HOME > 12.0.0.7: icmp: WWW.HOME udp port 635 unreachable [tos 0xc0]



notice these

udp port 635 unreachable [tos 0xc0]

so the error still sounds like firewall issues




Last edited by DavidPhillips; 02-05-2002 at 01:04 AM.
 
Old 02-05-2002, 01:17 PM   #22
kbaldor
LQ Newbie
 
Registered: Jan 2002
Distribution: Red Hat 7.2
Posts: 21

Original Poster
Rep: Reputation: 15
ipchains -L looked fine

but that's only because you had me fix it earlier. It used to say REJECT.

By the way, for the output and forward, there were no entries, but on the line corresponding to each it said

Chain forward (policy ACCEPT)
Chain output (policy ACCEPT)

I don't have tcpdump installed

Last edited by kbaldor; 02-05-2002 at 01:18 PM.
 
Old 02-05-2002, 01:53 PM   #23
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
What does input say?


If it said ACCEPT it would probably work



ipchains -F will not change this


to change it use this

ipchains -P input ACCEPT

this is what we want to see


ipchains -L
Chain input (policy ACCEPT):
Chain forward (policy ACCEPT):
Chain output (policy ACCEPT):


Last edited by DavidPhillips; 02-05-2002 at 02:06 PM.
 
Old 02-05-2002, 06:53 PM   #24
kbaldor
LQ Newbie
 
Registered: Jan 2002
Distribution: Red Hat 7.2
Posts: 21

Original Poster
Rep: Reputation: 15
my ipchains -L is more complicated

It contains several ports and protocols with individual ACCEPTS or REJECTS.

it looks like the default is ACCEPT, and both tcp and udp for nfs are set to ACCEPT

I modified my /etc/sysconfig/ipchains file so that ipchailns -L prints out ACCEPT for all chains (just like yours)

However, I am now seeing a new error. The mount attempt times out.

Any thoughts?

Last edited by kbaldor; 02-05-2002 at 07:21 PM.
 
Old 02-05-2002, 08:29 PM   #25
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
make sure you did the ipchains flush on both systems


check logs on nfs server and the client


tail -f /var/log/messages


if it is ok then it may be a local problem with the mount command now


try exporting an empty test folder like this


mkdir /nfsmount

chmod 777 /nfsmount

add it to /etc/exports

/nfsmount 192.168.1.2(rw)

exportfs -av

then mount it on the client like this

mkdir ~/nfs

mount -t nfs 192.168.1.1:/nfsmount ~/nfs

Last edited by DavidPhillips; 02-05-2002 at 08:31 PM.
 
Old 02-05-2002, 09:23 PM   #26
jonfa
Member
 
Registered: Mar 2001
Location: FL
Posts: 257

Rep: Reputation: 30
Hi,

Make sure that nfs and portmap are running on both the server and client. I tried evrything the other folks did and everything is fine.
 
Old 02-05-2002, 09:50 PM   #27
kbaldor
LQ Newbie
 
Registered: Jan 2002
Distribution: Red Hat 7.2
Posts: 21

Original Poster
Rep: Reputation: 15
It works

I re-installed, and it still didn't work.

I was sad.

Then I read a message about making sure that nfs was running on both machines, so I started NFS on the other machine.

It didn't work.

I was still sad.

Then it occured to me that the firewall rules on the other machine were probably just as restrictive, so I ran ipchains -F and now it works!

I have ceased to be sad.

Thanks for all your help, I have learned a lot about security and networking, but unfortunatly, it looks like the easiest thing to do is just remove all security and that doesn't seem like a good long term rule if I ever get a real IP address.
 
Old 02-05-2002, 10:59 PM   #28
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Glad you got it.
 
Old 10-02-2002, 02:48 AM   #29
bjwbell
LQ Newbie
 
Registered: Dec 2001
Posts: 22

Rep: Reputation: 15
Thank You

This thread is why I have NFS working I just have to say thanks.
 
Old 10-02-2002, 04:38 AM   #30
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 50
On the client, run:
showmount -e 192.168.1.1 (or whatever the IP address is for your server)

If it doesn't show you the server's exported filesystems, then your client isn't getting served.
If it does show you the exported filesystems, then maybe you didn't
enable port 2049 on the client? I don't think that should matter, but it may.


Ooops, just updated the page after submitting, and saw that you've already
got it working. . .
 
  


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
Transcode hates me DaBlade Linux - Software 15 07-22-2005 06:00 PM
GRUB 00.93 Hates Me KungFuHamster Linux - Software 1 11-23-2003 03:30 AM
x hates me kr00sh1n80r Linux - General 11 01-13-2003 03:24 PM
X hates me John Galt Linux - General 8 12-20-2002 01:42 PM
X hates me tha_newbfather Linux - Newbie 4 02-24-2002 02:47 PM

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

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