LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-13-2004, 11:39 PM   #1
cambie
Member
 
Registered: Jul 2004
Posts: 90

Rep: Reputation: 15
linux box as router


I've been thinking of using a linux machine as a router for my dsl connection. I was curious as to what the benefit of doing this over just using my Linksys WRT54G to share my broadband connection. Is it worth using the extra power to keep a whole PC powered up as opposted to the tiny router?

Any thoughts or suggestions? Should I just stick with my linksys router? Also, if I go with the linux routing solution, how should I add wireless into the mix?
 
Old 11-14-2004, 01:42 AM   #2
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
Depends on if your using the linux box as more than a router. The linksys router can probably do limited firewalling, dhcp, and NAT for sharing the internet.

Linux box can
Share the Internet (NAT)
Firewall a lot better
Log events if you've set the firewall to do so
Content filter the sites you visit
DHCP
DNS (set up your own caching DNS)
Share files/printers
FTP, SSH, TELNET, Web hosting
I could go on and on and on.

The point is what do you want to do. If your goal is to share the internet and maybe add a little protection with a gimpy firewall, then use your linksys. If you want more security, added features, and bragging rights that you run your own server then build a small 300Mhz box and have it do as much as you like.

EDIT:
PS: USE SLACKWARE!!

Last edited by musicman_ace; 11-14-2004 at 01:43 AM.
 
Old 11-14-2004, 02:36 AM   #3
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
You may want to check into OpenBSD. When I get DSL that is what I plan to use for my firewall/router. They are very stable, like Linux, and are the most secure things I have read about. I think they are about bullet proof, figuratively of course.

The CD is like $40.00 and it is real easy to install. I messed up the first time but if you follow the guide it will take about a hour the first time. I did the third install in about 20 minutes. Most of that time was the copy process.

Just thought I would mention it. Never can have to many options.

Later

 
Old 11-14-2004, 04:27 AM   #4
dtournas
Member
 
Registered: Aug 2003
Location: Charlotte, North Carolina
Distribution: Red Hat (and look-alike), SUSE (when drunk), Slackware (when mad)
Posts: 148

Rep: Reputation: 16
You may also check with IPcop. A real nice project at IPCop with support forums as well.
 
Old 11-14-2004, 06:04 AM   #5
clb
Member
 
Registered: Sep 2004
Location: UK
Distribution: Ubuntu
Posts: 117

Rep: Reputation: 16
I dont really see any advantage of running a PC as a router. For my network I'm just using the crappy router we were given for our ADSL line, nd having no problems running firewall, web/ftp servers from behind the router, net sharing, dhcp and a whole lot more.

Chris
 
Old 11-14-2004, 07:32 AM   #6
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
You can generally do a lot more configuring for your specific needs, block specific ports or enable some that you need open. They are also easy to update as the need arises.

For basic use, you're probably fine, just depends on what you want/need.

There is a list above in musicman_ace's post that shows the additional features.

Later

 
Old 11-14-2004, 08:35 AM   #7
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323

Rep: Reputation: 100Reputation: 100
I am not sure of the firewalling ability the linsys has, however, my D-link router's firewall stealths the ports that are not used (makes a port scan think there is no computer at the IP and the port. In addition mine offers logging, and has the ability to detect various attacks on my IP, in addition I also run a linux server with DNS inside my LAN, it also provides SSH, FTP, HTTP, and PPTP services. YOu could, if you wanted to take advantage of the linux security and still use your linksys use the linux box as a proxy, or simply route your traffic through the linux machine and then have it go out from there. Personally there are many who think that linux as a router is the only way, but I have never had any problems with my D-link, and personally prefer it to running and configuring linux, the fact that the D-link performs it's responsibilities in pure hardware makes it a slimer faster overall product.

Alex

Edit:
I can configure individual ports with my router, and specify iternal adresses as well as setup a DMZ computer, and the only real drawback I see is that you cannot really specify any protocols other than TCP/UDP or everything, although with the built-in VPN passthrough it does configure for GRE packets to pass through, in the case of L2TP and PPTP.

Last edited by scheidel21; 11-14-2004 at 08:39 AM.
 
Old 11-14-2004, 10:45 PM   #8
cambie
Member
 
Registered: Jul 2004
Posts: 90

Original Poster
Rep: Reputation: 15
well, the main feature i'd like to add to my routing setup is logging. but some of the other mentioned things would probably be nice, like dns, etc. Would hosting a small/almost non-exsistant website on the same machine have any performance effects? How about also making it a file share serving up nfs and samba shares?

Anyone have any idea how much more power I'd be using running the PC as opposed to the linksys?

I guess overall, I'd like more control over my routing. Do I need it? Probably not. But then again, that doesn't stop me from doing most of the other things I do.
 
Old 11-14-2004, 11:04 PM   #9
DaWallace
Member
 
Registered: Feb 2004
Location: Southern Maine, United States
Distribution: Slackware Ubuntu Debian FreeBSD
Posts: 418

Rep: Reputation: 31
isn't that the router you can flash and get a minimal but useable linux system at your disposal?

I love the embedded systems...

but.. even if it is... if you do any extensive logging you'll burn out your eeprom.... but it's something to think about.

Last edited by DaWallace; 11-14-2004 at 11:05 PM.
 
Old 11-16-2004, 12:17 AM   #10
gd2shoe
Member
 
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835

Rep: Reputation: 49
It may have some level of logging built in. I have a 2wire Homeportal which not only has the standard html access, but also has a hidden page at:

http://gateway.2wire.net/management

It doesn't have a lot, but several nifty features that are not otherwise available, including a logfile (you can also set it to send logging information to another machine). My point is: you may already have that functionality and not have a straightforward way to get at it.

Change of topic: If the Linksys WRT54G has wireless, and you decide to use a linux firewall, and use the Linksys as your wireless, I would route:
from your isp
to your Linux router
to your Linksys
to everything else

I haven't tried wireless in linux, but I hear it is sketchy to say the least (but maybe improving?).


I don't think most people really need a linux router (though most people need _A_ router). I'm planning to set up a router, but only because I have an unusual circumstance that I'm working in. We have two subnets that we want to have only very limited communication between, and both need access to the internet. You could learn a lot by it though
 
Old 11-16-2004, 12:20 AM   #11
gd2shoe
Member
 
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835

Rep: Reputation: 49
P.S. the URL in my previous post only works if you have a homeportal on your subnet, acting as your dns server, and answering to that name!
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
linux box as a router cambie Linux - Networking 4 11-21-2004 10:01 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

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

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