Question Locked

Turning computer into router, want to start off right, help?

0 helpful
32 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

So I am sick of my consumer router unable to handle the pressure.

I want to double up the use of my current web server machine, to also be the routing computer (is this possible?)

I have access to 2 network cards, both should be new enough. Neither are ISA and thus should work in Linux. The machine itself is only a 350mhz P2 with 256mb of RAM and a 40gb HD (gonna leave the second 10 gig drive as Windows 98, in case I need it).

My website is fairly low activity, nothing required to be secure. I mostly use it to hold files and photos, that funpics directory that I use in forums, my signatures, etc. No active content so a LAMP server is not really required, quick a dirty apache. I know my way around the apache config, but only in Windows. My Linux command line is super rusty. I think i remember an ls command... that's about it. And that the config was in an etc folder... and I need to be logged in as root to change it. Perhaps I should install a GUI for my configurations, then delete it when I am done?

On that note, I think I hear something called iptables??? is what I need to turn this machine into the same abilities as a router. Is that the right thing? how do I install and configure it? (Super detailed tutorial if possible, I have no decent or recent command line experience).
Also, will this thing allow me to forward ports like a consumer router? I currently use Virtual Server to do a lot of things in my house.

Can this server be set up to allow my other windows machines in the house to easily drop files in place and those files will assume the permissions and ownership of the directory they are in?

Can I also configure this server to function as my ventrillo server? (it is currently as my win98).

I will also need FTP access. Must work under passive access.

Also, if it would be easier, I read that Linux has good remote control abilities, maybe it would be easier to set up a machine just enough so someone could remote into it and set it up for me? Just a thought.

Assistance appreciated.
All good answers, advice, and insight will get thumbs.

32 replies

by oh smeg

Not exactly something like Untangle 720 will do the job of a Router when loaded on this system and it works quite well though I believe that with a 350 P@ you'll be stuck with the 32 Bit Version. The features are available here

http://www.linuxplanet.com/linuxplanet/reviews/6452/1/

Available for download here

http://sourceforge.net/projects/untangle/files/untangle/Untangle%20v7.2.0%20%28Charger%29/untangle_720.iso/download

There are other similar Packages as this available like Astaro Security Gateway review here

http://www.securecomputing.net.au/Review/105396,astaro-security-gateway-320-v71.aspx

and available for download from cnet here if you don't like Source Forge.

http://download.cnet.com/Astaro-Security-Gateway/3000-2653_4-10907218.html

While the 350 P2 should handle one of these easily I would still fit as much RAM as the M'Board can carry with the current price of Second Hand SD RAM which is now at piratically Give Away Prices and you could conceivably get a 450 P2 CPU for next to nothing as well. Currently I can not give away any of this stuff and depending on the M'Board that you have you may be able to use a P3 on it provided that you stay under the 1 GIG Frequency Limit that moved things to the faster FSB speeds of the latter P3's.

Col

by slayer_

I saw ISO in the file path, so I am curious.

Sadly, that P2 350 is best I got at present. I could fit an extra 64mb of RAM, it only holds 3 chips, currently running 2 128's. I checked the price of SD Ram here, of course nothing for sale at best buy and such, but the local computer store is selling 128 chips for 200 bucks and 256 chips for 300 bucks. And that's used chips... The web server doesn't seem to suffer too badly from the lack of RAM, so I wouldn't think it being a router would... But what do I know. I can say that the 40gig drive is fairly modern, it is 8 years old but it is 100% performance and fitness, its a 9000 RPM drive with a 16mb cache.

If Untangle wasn't an OS, what OS should it run?

by pshiflet-24

To use it as a router you would install Untangle as a stand alone device so in that instance, yes, the .iso will install the os and everything else needed to work.

As for RAM, check out www.crucial.com

by slayer_

Will I be able to web server the machine as well?

Is Untangle free?

by pshiflet-24

No, I do not believe you would be able to use the machine for anything other than the router/firewall/VPN endpoint/content filter. Yes, Untangle is free. There are packages that you can buy and use for untangle such as a Kaspersky a/v engine or Active Directory integration but the free packages can usually fit most needs.

by slayer_

And yes, you will all get thumbs for this.

Is Untangle GUI'd or do I need a commandline tutorial for it?

Is there any other solutions that would give me exactly what I need, routing functions and web server?

by pshiflet-24

Yes, Untangle does have a GUI. You could, if you just want simple routing functionality, setup a Windows XP Pro machine to act as a router and IIS will run on XP Pro, as well. You are limited to 10 concurrent connections, though, if that is an issue. You could also setup Apache on a Linux box and setup some server/routing functionality on that, too. But really, using a cheap consumer router is usually a simpler option than that (using the same box for routing and web server). I would setup Untangle and a separate web server if you have the hardware to do so.

by slayer_

Where the consumer routers are failing me is because, I'll have 100 torrents going, and trying to ply a 64 player game online while other people in the house are surfing the web. None of my routers can handle it. It mysteriously stops taking connections. I can't connect to anything, MSN, Xfire, nothing, after a couple dosen restarts of the router, it might work for a few moment then die again. If I get lucky enough for it to keep working, it always goes down as soon as I start torrenting or big multiplayer again. I have several routers available, of varying costs and quality and brands, none can handle it.

by pshiflet-24

Given your last post there is no way the hardware you have available to you, regardless of what you install or try to use for routing, is going to handle the traffic you are describing very effectively. Sorry.

by slayer_

What do you mean? I do not transfer large files (often) to other computers. So my overall bandwidth usage is minimal. Why should that require so much horse power?

by pshiflet-24

100 concurrent torrents (down or up?), online games, and web browsing seems like a fair amount of network usage. Untangle provides more than just basic routing in that it scans and filters network traffic. Doing so takes computing resources to not slow down the network.

Out of curiosity, what is your up/down on your connection and when you experience problems, does everybody on your LAN experience problems or just you? Windows XP and later has a limit on half-open connections that can cause network slowdowns when large numbers of concurrent connections are in use.

by brenton keegan

If it were me. I'd install ESXi (which is free) on a server. This of course depends on having hardware that's supported by ESXi. ESXi is basically the non-clustered version of Vmware's ESX product.

On here you can have a linux based router. I personally use vyatta. Create a vyatta VM and here you can create a number of servers that you want behind this router.

Since the all the hardware is abstracted by the virtualization hypervisor you can give your Vms as many nics as you need. You'll probably need at least 2 nics on this ESX box. One would be the outside connection and the other would be connected to the switch and you can have other physical devices on the inside network.

If it were me, I'd throw an out of the box router on the very edge. That will cut out a lot of crap and save your main router from the extra work load.

As for management, I'd have your workstation attached on the inside. If you have it on the outside then you'll have to open a bunch of ports for management. Unnecessary security risk.

by slayer_

Not to mention, how painful a P2 would handle virtualization, which could only offer likely less than 128mb of RAM to the virtual machine. Ouch Ouch Ouch! Would take weeks to even install an OS on a VM.

by brenton keegan

Serves me right for skimming, I didn't pay attention to your actual system specs =p.

If you had the hardware though, it would be way better and it's really not that extreme.

by slayer_

I have 100kbps up and about 2000kbps down. I rarely use that much with my torrents, picture 100 torrents and a total download usage of less than 5kbps. Most of it getting stomped on by the router. I can download a full speed at any time I want from a website, and yet cannot make or hold a connection to MSN or Xfire or any online game (except Steam for some reason).

Really, my router is doing its more intense work right now, transferring the contents of that 40Gig drive to another computer, onto a portable drive. And if you look at it in XP, total network utilization is less than .5% of 100mbit connection. The two fastest computers in my house rarely talk to each other. They are the only machines that can push 80% utilization of the network when transferring files between them.

I don't really require the abilities of filtering incomming and such, closer to basic NAT and some port forwarding for games and other servers such as ventrilo server, is all I need.

by slayer_

I was told that Linux could do what I want, but no one really said how.

If it is truely impossible, I do have a... rather noisey, 1.6ghz machine with 40gb HDD and 512 MB of RAM kicking around. But its power supply is not reliable. Still, if that is all I can do for this problem.

But I would much rather use the older, more reliable box.

by pshiflet-24

Check out http://www.shorewall.net/ for information on setting up a router/firewall on a linux machine. I would suggest using CentOS as your host OS. You should then be able to run Apache for your web services, DHCP and such for your LAN configuration needs and whatever else you are desiring. I don't think, however, that it will perform better than a standard consumer level router that you are already having issues with (unless they are really old or generally dysfunctional). Are there any logs from your routers that may give you a clue as to why traffic is being denied? Regardless, if nothing else it may be a fun experiment.

by slayer_

It just doesn't like it, any peer 2 peer traffic seems to bring em to their knees. And yet the odd time, I have run torrents, downloading and gamed for a month or 2 and it works perfectly. So I figure the stability alone of a proper OS should solve the problem. I don't see how it could make it any worse.

So this shoreline is something I install onto the OS?

Can you explain how to install this program? (I assume CentOS is Commandline...)

by pshiflet-24

CentOS is a linux distribution based on RHEL (redhat). It has a GUI like almost all current linux distributions. You can download an iso to create the install DVD. Once CentOS is running you can setup/install Apache for your web services and download/install Shorewall for routing. The Shorewall site has some instructions on both install and configuration. There are numerous walk-throughs online regarding installing and setting up CentOS, which is a graphical installation and quite straight forward.

I will caution you that if you aren't familiar w/ linux this may become more an exercise in frustration than in setting up a router. Sometimes learning something isn't really fun when what you really want is just something that works.

by slayer_

I do have some experience with Linux (experienced GUI Sloth for example). So it shouldn't be too painful. I no longer require the old printer it is hooked up to, and a router obviously doesn't require video or sound. The only incompatibility I can see is network cards, but they are normal cards, no winmodem or anything like that. And the last issue is if the CPU is to slow, will it bog down computer to computer network flow. I already know transferring a file from or to that computer is painfully slow. But if it is just forwarding on the packets, would it be as slow?

I also intend to keep that router attached as a wireless hub.

I do forget how to use Vi... But if it has a GUI, I should be able to just uninstall or turn off the GUI when I no longer need it right?

During the install, can I specify which GUI to use, and if so, what would be the best for such an old system. I had Ubuntu 8 on it once, in the time it took to open a menu and draw its contents, I managed the make supper, eat it, have a shower, shave, walk the dog, watch star trek, before it was done. Opening an admin GUI session took (seriously) 2 hours to do.

by pshiflet-24

I can't imagine what would cause a machine to run that slowly but if that is the case then yes, it will almost certainly cause network slowdowns. As for the GUI, I would stick with Gnome, since that is what I am comfortable with, though I do believe you can install KDE on CentOS as well if that is your desire. As for removing the GUI, you would just lower the run level to, say, 3 so the GUI isn't running all the time but you still have multi-user and network access.

by slayer_

3 was command line, 5 was gui. I forget how to switch between em or what config file to change.

by seanferd

Go with Openbox, Fluxbox, XFCE, etc.

On the other hand, what is the current router hardware you have? You may be able to install DDWRT or Tomato on it.

by slayer_

But its one that there is no turning back. I don't think I want to sacrifice the router for that. I still need it for wireless access. Perhaps I will look into that should the computer as a router idea fail. At which point my only options would be to buy a new router, or change the firmware on the current, which may go sideways and require a new router.

I am not at home presently, I will post the exact model later on, but it is a Belkin.

by seanferd

Just get a copy of the current firmware for the router, so you can flash it back to the factory OS if you don't like the alternatives.

by slayer_

Version Info
Firmware Version
F5D7230-4_US_8.01.07
Boot Version
v1.01
Hardware
F5D7230-4 6000
Serial No.
BEL79e1a2c

Though I still think it is the hardware, not the software, why else would it work sometimes for months, then stop working for months? I have a DLink and an SMC, both have similar, but consistent issues. They consistently don't work. I had some sort of pine tree like router once, didn't work till i threw it down the stairs, then hit it with a sledge hammer. Started working perfectly after that, worked for almost 8 years!

Anyways, I think I have enough to try a solution. I am currently waiting on the server to finish backups, its at 17% right now. When thats done, I'll disconnect the 10 gig Win98 and nuke the 40 gig drive.

I was reading and, lots of people say the best solution is to either have an OS partition and a data partition, or even easier, just put everything on one partition so I do not need to worry about running out of space as applications update, swapfile increases, or web server size increases. Agree?

I'll need an FTP server program as well, I know I had one before, complete with GUI, but it was kind of a piece of junk, didn't even have encryption or anything. Any suggestions?

Also, is CentOS a good choice for such a weak CPU? I had also heard that DSLinux would be a good starting point for its ideals on small size.

by seanferd

Here's your router:
http://en-us-support.belkin.com/app/product/detail/p/377

The v6000 (I'm assuming these are the hardware revisions) won't work with DDWRT anyway.

"Pine tree router"? Hilarious. :^0

Partitions: Generally, most distros I've used want to set up at least three partitions, and i opt for that method. seeing as this is going to be a fairly static box, I don't think you need to worry about running out of space. If you plan on keeping the files being served on the same HDD, jusy make sure the large enough partition is made for data. Shouldn't be a problem, really. But go with one partition if that is more comfortable for you.

FTP servers - generally packaged and even default-installed with many distros. Or you can install any FTP server available in the repositories at the drop of a hat. You sound like you want an SFTP server with a GUI, but I can't make a recommendation, personally.
http://www.google.com/search?ie=UTF-8&oe=utf-8&q=linux+sftp+server+gui

I wouldn't really consider DSL as an option, because it is meant to be used as a very lightweight desktop OS. You'll have to install and uninstall so many packages, it won't be worth it.

CentOS is still listed at DistroWatch as available for i386, so anything above that achitecture should be fine. Most places I've seen are fairly specific about architecture support, and your processor, if memories serve, would be i586. It isn't unusual that CentOS is used for servers .

But feel free to browse around for a lightweight and compatible server/like distro. many are going to look larger than your install will be, as you will custom install without very many large apps at all.

Top 10:
http://distrowatch.com/dwres.php?resource=major

Then you'll want to get your router packages and install them. If you weren't using this for a server as well, there are quite a few router/firewall distros out there. but maybe you could go with one of those and set up a server on that, too. not sure, as this generally goes against the security-think of a lot of community members, so there might not be a lot of info or help should you run into problems with that. (But maybe a Unix-wrangler at TR could help.)

by slayer_

My web server contents do change frequently and do tend to grow. Such as me providing a game download to someone. Or the great "Save Image To Folder" I got in Firefox that saves all images I want to my servers funpics folder (6000 images and counting :) ).

I guess to keep that working, I will need to install Samba server as well.

When I finally move out, I can make properly dedicated machines for the purposes, but for the next 4-8 months, I am getting sick of not being able to even chat on xfire..

This discussion is closed to new replies.