also @ TechSpot: Mozilla developing Metro-specific Firefox for Windows 8
Welcome to the TechSpot OpenBoards. Please read the FAQ if you have any questions. Sign up or Login to participate.

Go Back   TechSpot OpenBoards > Software > The Alternative OS

Collaborate in the cloud with Office, Exchange, SharePoint, and Lync

Linux Router Project

Thread Tools Search this Thread
  #1  
Old 05-31-2004
PanicX's Avatar
TechSpot Ambassador
 
Location: Southern California
Member since: Feb 2002, 829 posts
System specs
Linux Router Project

Hey all, I've got a rather daunting task I'd like to undertake but will need some serious handholding to get through. For those of you willing to take the time to help me out, here's the scenario.

A few months ago, a buddy of mine rented the apartment next door. We both have cable internet connections, and we drilled through the wall to connect our LANs for fast easy sharing. What I would like to do is replace both our Linksys Routers with a single linux box that would route/loadbalance the cable connections, provide firewall security, network monitoring, DHCP, SFTP, and a massive file share (SAMBA?).

I have about 3 PC's running Windows XP, and he has about 4 PC's running Windows 2000. We both have friends drop by often with Laptops running either Windows XP, Slackware Linux, or OSX.

Now, I'm presuming the most difficult function involved is loadbalancing the connections. With this in mind, is there any particular linux distro that would be best for this scenario? I also want to avoid installing a GUI to save resources, however I'm not sure how to do this with modern distro setup utilities I've seen.

Any and all help is greatly appreciated.

Last edited by PanicX; 05-31-2004 at 07:10 PM..
  #2  
Old 06-01-2004
Nodsu's Avatar
TechSpot Evangelist
 
Location: Estonia
Member since: Feb 2002, 9,431 posts
System specs
Making your network server also your file server is not such a good idea. You should keep the file server separate so you don't lose everything at once when you get hacked or mess up the server yourself.

You don't need much CPU power to run Samba - you could get some old rig for (almost) nothing to do the file serving. Some >32MB of RAM and any Pentium CPU will suffice for you if you don't hog it too much.

I'd recommend some less desktop oriented distribution like Debian or Slackware. A Debian install set should come with every utility you could dream of so you don't have to make separate downloads.

When setting up the server, take it one step at the time. E.g. first make sure you have cable connectivity from the server only without Linksys. Then make two cable connections. Then set up routing/load balancing and test it. Then connect the local network, add firewall and other services.

You don't need a top of the line machine for any of the network services either except maybe for SFTP to help with compression/encryption.
  #3  
Old 06-09-2004
PanicX's Avatar
TechSpot Ambassador
 
Location: Southern California
Member since: Feb 2002, 829 posts
System specs
Quote:
Originally posted by Nodsu
Making your network server also your file server is not such a good idea. You should keep the file server separate so you don't lose everything at once when you get hacked or mess up the server yourself.
Filesharing isn't the main intent of this PC, however I was thinking it'd be nice to consolidate 2 machines into 1. The files hosted also wouldn't be any sort of critical files, most likely music or videos. If it was hacked or crashed, it would just mean a few weeks of downloading to start over. I'd be more concerned with if theres a major performance hit on the box hindering traffic routing.


Quote:
Originally posted by Nodsu
You don't need much CPU power to run Samba - you could get some old rig for (almost) nothing to do the file serving. Some >32MB of RAM and any Pentium CPU will suffice for you if you don't hog it too much.
The system I'm trying to do all this on is a Celeron 533 with 256MBs of RAM, a 40Gb Harddrive and 3 NICs.

Quote:
Originally posted by Nodsu
I'd recommend some less desktop oriented distribution like Debian or Slackware. A Debian install set should come with every utility you could dream of so you don't have to make separate downloads.

When setting up the server, take it one step at the time. E.g. first make sure you have cable connectivity from the server only without Linksys. Then make two cable connections. Then set up routing/load balancing and test it. Then connect the local network, add firewall and other services.

You don't need a top of the line machine for any of the network services either except maybe for SFTP to help with compression/encryption.
I've taken your advice and setup Slackware 9.1 on this machine. Gave it a 3gb root partition (reiserfs) and a 1gb swap. Just to comment, Slackware has an excellent setup utility. Its not as pretty as all the desktop distros, but if you go through Newbie mode, it explains every package before you chose to install it. My only complaint is that it's not very easy to backstep out once you've made a selection you weren't sure about. Pretty much have to restart that part of the setup process.

Basically during setup, I didn't install the X server or any packages related to it. I didn't install any sound or audio utility packages (theres a whole lot of em). I DID install DHCP client, DHCP server, SSH, iptables & ipchains, SAMBA, and a few network monitoring utilities.

My first hitch is this, during the install, Slackware detected and configured one of my network cards, but didn't attempt to search for more network cards after finding this first one. ifconfig -a shows only eth0 and le0. How do I install the remaining two cards?
  #4  
Old 06-10-2004
Nodsu's Avatar
TechSpot Evangelist
 
Location: Estonia
Member since: Feb 2002, 9,431 posts
System specs
I don't know if Slackware has any hardware detection utilities to automate this for you..

You should check the dmesg buffer (/var/log/dmesg) to see if the kernel has found the network interfaces. If not, then you have to tell the kernel to probe for more NICs with a boot parameter (can't remember it offhand, but you should read Linux networking HOWTOs anyway).

If the cards are detected, use ifconfig to bring up the interfaces manually and give them IPs and such.
  #5  
Old 06-10-2004
Mictlantecuhtli's Avatar
TechSpot Special Forces
 
Location: Finland
Member since: Feb 2002, 4,886 posts
System specs
Re: Linux Router Project

Quote:
Originally posted by PanicX
Now, I'm presuming the most difficult function involved is loadbalancing the connections. With this in mind, is there any particular linux distro that would be best for this scenario? I also want to avoid installing a GUI to save resources, however I'm not sure how to do this with modern distro setup utilities I've seen.
To combine multiple connections, use kernel's Ethernet Bonding Driver. It's in Networking support - Network device support - Bonding driver support, documentation is in kernel source directory, Documentation/networking/bonding.txt.
  #6  
Old 06-12-2004
MattG's Avatar
TechSpot Member
 
Location: Maine
Member since: Aug 2003, 147 posts
I use slackware to NAT, Firewall my cable connection. I dont DHCP though, i use static addresses. DHCP is easy though.

iptables will NAT and firewall for you.
  #7  
Old 11-05-2004
Newcomer, in training
 
Member since: Nov 2004, 1 posts
I'm new to Slackware myself but think its great..

Your netcards will probably be auto detected but in order to actually
bring them up just edit : /etc/rc.d/rc.inet1.conf
Most stuff in Slackware is extremley standard so you just need to guess
which text file to edit.
Closed Thread

Similar Topics
Topic Replies Forum
MS Project 2007 0 Software Apps
For my project.. 2 Audio and Video
Help! Uploading ASP.Net project on the web 0 Software Apps
xandros linux lover windows/linux programmer (RealBASIC) newbie 2 Introduce yourself
The Spamhaus Project 6 General Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
All times are GMT -4. The time now is 11:51 PM.