LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 10-31-2003, 12:55 AM   #1
gchandler
Member
 
Registered: Aug 2003
Location: Australia
Distribution: Linux Mint 10
Posts: 69

Rep: Reputation: 15
Thumbs down Home network - won't


I am a linux newbie an learning to set up a home network starting with two computers with a X'over cable (before buying wireless and connecting two other MSWIN PC,s. )

So far both machines ping each other and Samba set up on my Internet gateway machine can be seen by both machines. Can't get it to reveal my home drive though and can't get it to print. (I assume these are samba configuartion and folder permission issues, nether of which I have much of a clue about.

Internet Gateway works with ISP connection OK, and I have switched on packet forwarding (I hope!) But I can't ping any external site from the client PC, with or without either machine's firewall switched on.

NFS did nothing at all when configured on the gateway computer when trying to access from the client computer.

I have been doing this with "Redhat Linux 9 for Dummies" in one hand and following it as best I can.

What can I do/check now to get both machines to speak to each other? I assume its configuration as Samba woks a bit and ping does to.

many thanks

Graham
 
Old 11-01-2003, 09:33 AM   #2
idaho
Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: RedHat, Libranet
Posts: 438

Rep: Reputation: 30
Your post was a little confusing about your setup, but I will take a shot at responding anyway.

I am understanding you to say that your two local boxes can ping each other, and that your gateway box can connect to your ISP and ping the world, but your non-gateway box can't ping the outside world (via your gateway box). If this is correct, then your gateway box does not appear to be forwarding requests from/to your non-gateway box.

All the talk about Samba, nfs, rsh, etc. is unrelated to this basic issue of configuring your gatway box to act as a gateway.

On a side note, it is generally a good practice to avoid turning on extra services like Samba, nfs, rsh, etc. on any box that is facing the outside world. Having an unexpected intruder working on your system just adds complexity to your efforts to configure it.
 
Old 11-01-2003, 10:52 PM   #3
gchandler
Member
 
Registered: Aug 2003
Location: Australia
Distribution: Linux Mint 10
Posts: 69

Original Poster
Rep: Reputation: 15
Thanks for your help. I greatly appreciate it.

I]
Quote:
I am understanding you to say that your two local boxes can ping each other, and that your gateway box can connect to your ISP and ping the world, but your non-gateway box can't ping the outside world (via your gateway box). If this is correct, then your gateway box does not appear to be forwarding requests from/to your non-gateway box.
[/I]

Your description above of what I was trying to explain is accurate. The process I followed to set up forwarding of requests was:
gedit /etc/sysctrl.conf
and changed the following line:
net.ipv4.ip_forward = 0
to:
net.ipv4.ip_forward = 1

But I don't know how to test if IP forwarding is in fact active, (as opposed to just changing the config file and restarting network services)
How do you do this?

The reason I started Samba at all was that coming from a windows environment I was expecting to "see" the other computer somewhere when they were connected. Of course Linux doesn't seem to do this, until I started Samba, which at least showed me an icon of the gateway machine and vice versa confirming that they could speak to each other beyond simply pinging.

When I come to actually wanting to share drives printers etc on this little home network is it more secure to use a non internet gateway box as the nfs or samba server?

gc
 
Old 11-03-2003, 11:27 AM   #4
idaho
Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: RedHat, Libranet
Posts: 438

Rep: Reputation: 30
I don't have much direct experience setting Linux up as a router, but here is a link to Linux IP Masquerade HOWTO that covers the subject:
http://www.ibiblio.org/pub/Linux/doc...ade-HOWTO.html

With regards to your question about using a noninternet gateway box as your Samba server, absolutely yes - every service that is being run on the gateway box is a possible route into your home network. A good solution is to get an old (cheap) 486 or early Pentium and install two network cards, or a modem an a network card, and then dedicate it to being your internet gateway. Here is a link to a page that provides some precanned distros for setting this up:
http://lrp.steinkuehler.net/
 
Old 11-05-2003, 01:22 AM   #5
gchandler
Member
 
Registered: Aug 2003
Location: Australia
Distribution: Linux Mint 10
Posts: 69

Original Poster
Rep: Reputation: 15
Thanks idaho.

I tried to understand the stuff on masquerading - I just don't . For some reason its like maths when I was young, a big mental block. I just don't think like that. Thats why I glossed over it in Redhat 9 for Dummies. But I can now see that seems to be where the problem is. I just wish there was a gnome configuration screen which made it easy. I'll read the material you suggest again...and again...!! and see if I can get it working, but at least you have identified my problem.
Oh well......

Many thanks for your help
 
Old 11-05-2003, 11:35 AM   #6
idaho
Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: RedHat, Libranet
Posts: 438

Rep: Reputation: 30
That is where the precanned distros mentioned in the link I provided come in handy. They have this stuff all sugar coated so you don't have to thoroughly understand it to use it.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Home Network jwestlak Linux - Networking 7 03-11-2005 08:57 PM
Home network setup with network firewall/router Gates1026 Linux - Networking 4 01-17-2005 08:26 PM
Home Network Similar to Work Network Boffy Linux - Networking 2 08-05-2004 06:52 PM
home network and work network PlatinumRik Linux - Wireless Networking 2 02-24-2004 07:12 PM
Newbie wanna setup up a linux network on existing home network... marvc Linux - Networking 3 03-19-2003 09:02 PM


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