Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-20-2004, 01:52 PM   #1
Registered: Jul 2004
Posts: 90

Rep: Reputation: 15
linux box as a router

I know linux can perform well working as a router, even on older hardwre, and I've been considering doing this, but can't decide if it's really worth spending more electricity and wasting more space at my computer desk. I'd like it to be a sort of fileserver for me, sharing disks via samba and nfs. But not a lot of share access is going to be going on, so I don't think it'd give my routing stuff any performance issues normally. How much more electricity would I spend running another computer as opposed to just my linksys router? keep in mind this pc will be headless, or connected to an LCD via a KVM switch.

Also, how would I add wireless to the linux setup? Could I just pick up a PCI 802.11g card from CircuitCity or something and share it in the router setup just as i would eth1? Perhaps there's a better way?
Old 11-20-2004, 02:10 PM   #2
Senior Member
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
I actually run a linux box as a router/file server my self. Compared to electricity costs i would assume the comptuer uses slightly more but its not much compared to your refrigerator :P

Linux works great for doing this kind of thing even if you do load it with alot of file shareing things

I have aloso had wireless setup on that server to give a kind of wireless access but i would recommend trying to get an access point cause ad-hoc connections are horrible for stablity

On my electic bill i notice maybe a 2 or 3 dollor increase running 2 linux computers all the time 24/7 <-- your millage may very depending on the costs for electiric in your area.

My server is currently running slackware 10
2gb primary system drive with 700mb free for my own file shareing fun NFS
94mb ram
2 nics <-- removed the wireless when i moved there and added an access point but at the time there was 3 and yes internet worked perfectly on the wireless and the internal lan <-- i still have the script that made this possible and it does include a firewall but i was rooted using this with ssh turned on so its possibly insecure.
40gb harddrive for my cousins windows crap shared though samba
apache for internet web space <-- this is really for screwing with it :P
dns/dhcp server
dhcpcd client for internet connection end

I would be happy to send you any information that you needed to get something like this setup.
Old 11-20-2004, 02:38 PM   #3
Registered: Aug 2002
Posts: 21,792

Rep: Reputation: 4248Reputation: 4248Reputation: 4248Reputation: 4248Reputation: 4248Reputation: 4248Reputation: 4248Reputation: 4248Reputation: 4248Reputation: 4248Reputation: 4248
A Linksys WRT54G wireless router specs say 1amp @ 12VDC which is about .15 amps @ 120VAC. A small PC will probably be 2-3 amps @ 120VAC. Converting that to $ would be about $1.50 /month more to run my PC vs a hardware router based on being powered 24/7.

You would need to add a wireless access point or replace your existing router with something like the Linksys and then forward the fileserver stuff to another PC.

Last edited by michaelk; 11-20-2004 at 02:39 PM.
Old 11-21-2004, 05:20 AM   #4
Registered: Jul 2004
Posts: 90

Original Poster
Rep: Reputation: 15
From reading another post, it looks like it may be possible to use a wifi card with a prism chipset as an access point. I'd really rather do this than buy an access point. Now that it looks like electricity costs won't be that big of a deal, I'd still like to reduce the number of boxes sitting around.
Old 11-21-2004, 10:01 AM   #5
Senior Member
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
You can use "some" wireless cards as access points if they support the master mode. I would really check first tho. I know the one i had dident


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
linux box as router cambie Linux - Networking 10 11-16-2004 12:20 AM
Using Linux Box as a Router wasabi Linux - Networking 5 09-04-2003 05:08 PM
Linux box as a router dumpa Linux - Newbie 8 08-08-2003 04:05 PM
Linux box as router AkumaLoka Linux - Networking 3 10-14-2002 04:57 PM
Linux box as router Kapone Linux - Networking 5 07-04-2001 06:50 AM > Forums > Linux Forums > Linux - Networking

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration