LinuxQuestions.org
Visit Jeremy's Blog.
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 07-21-2005, 03:58 PM   #1
centered effect
LQ Newbie
 
Registered: Jul 2005
Distribution: Ubuntu/Debian
Posts: 8

Rep: Reputation: 0
Question on setting up a home network and a file server


I would like to set up a home network and have one machine as a file server. Through searching through various forums, google, microsoft, and samba sites I have gained alot of information, but I have have a few questions for my setup at home.

1. We have a Westell 327w DSL Modem/Router from Verizon, an 8-port switch, 4 machines (2-Windows and 2-Linux -different configurations), plus the soon to be file server. I read to keep the network private, you can use a router (as apposed to a switch which will make the network public - I read that on another forum, please let me know if this is accurate). My question is, because none of the Windows machines are connected to the internet, they are work machines only and just need to pull files from the server, do all the systems need to be connected to the router?

2. If the answer to the above question is - that I need all systems connected to the router, then how can I make the Windows machines not connect to the internet, and still be able to connect to the file server?

3. Because there are both Windows and Linux machines, I still want the File Server to be an easy setup, but because Linux systems are involved, I cannot have the File Server as a Windows machine (to do a simple folder, then have it shared). Can Samba be configured as easily (as a Windows machine would) and what other packages would I need with Samba to make the File Server work? (Do I need ftp? apache? webmin? something else?)

4. What else do I need to know for setting up a File Server for my home?


Many thanks in advance to everyone's help!
 
Old 07-21-2005, 04:35 PM   #2
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
welcome to LQ.

your ADSL modem has a 8 port switch, right? this does not mean that it is only a switch. it is a router too, it will route between your LAN and the WAN (wide area network, meaning: the internet). traffic destined to an address outside of your LAN's range will be 'routed' out to the internet. packets from your LAN destined to you LAN will stay on you LAN.
to prevent the windows pc's from acessing the internet, you can either delete the default route in their routing table (if you assign addresses statically, just remove the default gateway). or you can set rules in your firewall (your adsl router/modem should have one accessable throu a web interface)

about the fileserver: you can use a windows pc to share the files, this might even be easier than setting up samba. if you want to use different permission settings within the shares, use an ntfs partition.
the samba setup is fairly straight forward, esp. in Debian (ubuntu comes from debian, so it should not be much different there, actually more simple)
 
Old 07-21-2005, 04:54 PM   #3
slada
LQ Newbie
 
Registered: Jul 2005
Posts: 2

Rep: Reputation: 0
1. You definitely want a router to be between you and your connection to the internet. Routers do Network Address Translation (NAT) which serves to protect your network from outside attacks. Any low end router will allow you to set up a private network and will route any computers you want to access the internet through the public i.p. address that your isp assigns you.

2. Because your router controls your network you will want to run all your computers through it -- even those that cannot access the internet. Your router will give you the option to only allow those computers to have access to the internet that you want to have access. This is called MAC address filtering.

3. You can use the Windows machine as your server and connect to it via your linux box. I currently adminster a network that has a Windows Server 2000 sharing the files and Linux workstations connecting to it. However, I would highly recommend using a linux box as your file server -- especially if you are running Win 9x. Linux is more stable and Samba is not too difficult to configure. There is plenty of documentation on how to do it.

If all you want to do is serve up files, you don't need any of the other applications you mentioned. A barebones linux install running Samba should do the trick.

4. Since you are hooking up five computers to your router you will either want to find one with five ports (be careful to not confuse the uplink port as one you can use for your network) or else you will need to purchase a switch as well.

That should do it. Have fun.




Ooops. I missed the bit that your modem is a router. You should have no problem with ports or need to buy a router. Just configure it correctly.

Last edited by slada; 07-21-2005 at 04:57 PM.
 
Old 07-23-2005, 10:09 PM   #4
centered effect
LQ Newbie
 
Registered: Jul 2005
Distribution: Ubuntu/Debian
Posts: 8

Original Poster
Rep: Reputation: 0
Thank you all for the great information!

Hmm this seems slightly trickier than I thought it would because there is another variable that got thrown in... but a few more questions then I think I should be good.

1. Can a workstation be a file server as well? I now have to keep two of the machine seperate as its own network, so one machine can serve files to the other.

2. (For the other three systems,) One will be an online machine, but now planned to have 2 NIC's, one to access the internet and one to go into the file server. The file server can then go into the switch and serve the files it need. Can that work?
 
Old 07-25-2005, 10:46 AM   #5
slada
LQ Newbie
 
Registered: Jul 2005
Posts: 2

Rep: Reputation: 0
1. A workstation can be a file server. Just share the folders with the files you want to share.

2. It seems like it should work but I have never tried a setup like that. If it is security you are after, it seems easier to me to run everything through the router and then set up the security you need there.

David
 
Old 07-26-2005, 07:38 AM   #6
centered effect
LQ Newbie
 
Registered: Jul 2005
Distribution: Ubuntu/Debian
Posts: 8

Original Poster
Rep: Reputation: 0
Ok I think everything is ready, I have one problem. The server does not seem to be sending out a signal. I can unhook the cable from the switch and plug it into the router, and get the internet, but I can seem to to have the server send a signal to the other machines.
The server is running Debian Linux

Thanks everyone!

PS. The server cannot ping to the Windows machine, it says network is unreachable. The windows machine is saying it is sending out but not recieving anything, if that helps.

Should eth0 be up to be sending out data? (and how would I know its up via command line)

PSS - It seems as if the switch is not giving out an IP number, nor is DHCPDISCOVER seems to be getting anything and in result eth0 is not up. The switch is plugged in, and cables work .

If it helps any, the network looks like this

File server -- switch --- (nic2 in) Linux Machine (nic1 for internet)
....................................--- Windows machine

Last edited by centered effect; 07-26-2005 at 11:41 AM.
 
  


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
Setting Up Server for Home Network geewildman Linux - Newbie 6 11-21-2005 10:17 PM
Tutorials/Guidance on setting up a Linux file Server (on a Windows network) Smiles483 Linux - Networking 4 08-26-2005 05:27 AM
home network (win & lin) file/print server, distro? jollyjoice Linux - Networking 3 11-03-2004 12:51 PM
which distro to use as a file server in a home network? linbo Linux - Distributions 4 09-04-2004 02:06 AM
setting up a home network server rebelcan Linux - Networking 8 01-06-2004 08:55 PM

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

All times are GMT -5. The time now is 01:27 PM.

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