LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-26-2010, 04:48 PM   #1
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Rep: Reputation: 47
Linux router


How do I make a router by Linux?

In other words you want your Linux to work as a router.
Your thoughts are welcome.
 
Old 03-26-2010, 04:58 PM   #2
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
you would need
2 nics
iptables (installed by default) or a gui firewall configuration like firestarter
eth0 -> internet (dhcp assigned)
eth1 -> lan (static assignment)

a dhcp server

you could also use a firewall distribution like smoothwall express or coyote (floppy based) if it's for a dedicated box

also you could do it with 3 nics in some specialized cases
eth0 ->internet
eth1 ->dmz (you would put any public accessable machines like webservers,anon ftp servers, mail servers etc... here, but then again the same can be accomplished by placing the said servers between the router and a firewall)
eth2 ->LAN

Last edited by frieza; 03-26-2010 at 05:01 PM.
 
Old 03-26-2010, 07:41 PM   #3
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
this mite help:
http://www.linuxquestions.org/questi...6/#post3804866
 
Old 03-27-2010, 01:51 PM   #4
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Moved: This thread is more suitable in Linux-Networking and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 03-28-2010, 06:45 AM   #5
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
Thanks Xavier
You moved the thread; it is fine by me.
You are very good at Linux.
I remember you very well.
You are one of the die hard supporters of the forum, in my book.

-------------------------------------------------------------------------------------------------------
By the way our friend 'Schneidz' wrote the following:
this mite help
I haven't learn the word 'mite' in English.
I guess it is typo.
He misspelled and it should he ' This might help'.
The URL he mentioned is a good one and I have bookmarked it.

Last edited by Gins; 03-28-2010 at 06:49 AM.
 
0 members found this post helpful.
Old 03-28-2010, 04:15 PM   #6
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
^ you are correct gins; it should be might. this thread is unrelated but was a fun distraction:
http://www.linuxquestions.org/questi...ml#post3910806

Last edited by schneidz; 03-28-2010 at 04:17 PM.
 
Old 03-29-2010, 03:07 AM   #7
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
I wrote 'he' instead of 'be'.
It is typo and you asked me to eat humble pie.
 
Old 03-29-2010, 11:13 AM   #8
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
^
 
Old 03-30-2010, 07:11 AM   #9
kevinnrobert
LQ Newbie
 
Registered: Mar 2010
Posts: 2

Rep: Reputation: 0
Routers are amongst the most crucial components of the Internet, as each bit of information on the Internet passes through many routers. Most of the routers used on the Internet are made by Cisco. Although these have good performance, they come at a high price.
 
0 members found this post helpful.
Old 03-30-2010, 08:06 AM   #10
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
^ cisco makes linksys and i think those use an embedded linux (same as netgear); though i am unsure what operating system their mae routers run.

edit: i looked on google and can only find evidence that some home routers run linux off-the-shelf but most have been hacked with various open source firmwares.

Last edited by schneidz; 03-30-2010 at 08:11 AM.
 
0 members found this post helpful.
Old 03-31-2010, 05:25 AM   #11
CmdoColin
Member
 
Registered: Jul 2009
Posts: 31

Rep: Reputation: 17
Most routers I've worked on have effectively a *nix based operating system. Cisco is definitely one of them; IOS has it's roots in Unix.

For SOHO use Linux routers they are pretty good, but I'd be concerned about using them in another environment with heavy usage. The thing with any of the big router manufacturers they are all using dedicated hardware designed to move traffic fast, and the kernel of their code is designed to do the same. As much as I like Linux, over a certain size I'd recommend a dedicated operating system and architecture.

Good example, I've got an old piece of hardware with two NIC's acting as a firewall at home. Upon upgrading my cable service to something with a little more bandwidth, my old hardware can't actually ship that much data. I *think* it's actually the processor that is the bottleneck in this case. Sure it's an old battered machine from pre-history, but kinda illustrates the issues you'll hit.

As for schneidz comments about a "hacked" firmwares, there is a seriously beautiful piece of work out there. Before the Cisco take over of Linksys, the routers produced were... okay. A community firmware produced was DD-WRT. It's so good a firmware, Buffalo will be shipping some of their new routers with it was a factory default from June this year. If it's something you are interested in, there's a list here of distro's on wikipeda: http://en.wikipedia.org/wiki/List_of..._distributions
 
  


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
Adding new Linux firewall/router on network with pre-existing gateway/router grittyminder Linux - Networking 4 08-13-2008 02:17 AM
Small Linux Router/firewall behind D-Link Hardware router dleidlein Linux - Networking 6 04-30-2007 05:12 AM
linux as router/gateway/firewall to dsl-router sjoerdvvu Linux - Networking 2 02-24-2006 10:56 PM
Linux Router & Netgear Wireless Router DMaCATO Linux - Wireless Networking 1 04-30-2004 09:16 AM
/etc/resolv.conf configuration when behind a router(not a linux router) rmanocha Linux - Networking 2 04-28-2004 01:52 AM

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

All times are GMT -5. The time now is 04:15 AM.

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