LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 10-11-2011, 02:02 AM   #1
tmk
LQ Newbie
 
Registered: Oct 2011
Posts: 6

Rep: Reputation: Disabled
Building old PC as Router


Hello everyone,

first,Im sorry for my not excellent english. I need Help from someone.
I have OLD PC, which I want to have as a ROUTER,FTP,WEB server...Mainboard has 6 PCI slots. I bought brand new 5 ethernet cards and 1 Wifi card to that PCI's. Topology should by like this: 1 WAN PORT (go out to internet),4 LAN PORTS,and last port for WIFI card.My question is: Is it however possible to make this configuration with linux distribution or windows server 2003/2008?? What all I should do for that??
I spent by searching couple of hours on google to find some guide for that,but not successfully. All I found was configuration for 2 NICs. Please give me any ideas,or guides. THANKS!!!!!
 
Old 10-11-2011, 02:34 AM   #2
Lexus45
Member
 
Registered: Jan 2010
Distribution: Debian, Centos, Ubuntu, Slackware
Posts: 361
Blog Entries: 3

Rep: Reputation: 48
hello.

1. You haven't mentioned what hardware do you have - CPU, memory, HDD.

2. If the hardware is pretty old, are you sure you really want to have all that services (routing, FTP , HTTP) on the same machine? Besides, it's not a good practice to set up many services on the same machine. Though, many things depend on the traffic load and location of the server (in the Internet or in the friendly LAN).
To my mind you'd better use some GNU/Linux than Win 2003/2008 on an old PC.

3. Do you think you really need 5 ethernet cards? Yes, it's possible to set up the router with 1 WAN and 4 LAN interfaces. But it's rather unusual.

Last edited by Lexus45; 10-11-2011 at 02:38 AM.
 
Old 10-11-2011, 02:51 AM   #3
tmk
LQ Newbie
 
Registered: Oct 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Lexus45 View Post
hello.

1. You haven't mentioned what hardware do you have - CPU, memory, HDD.

2. If the hardware is pretty old, are you sure you really want to have all that services (routing, FTP , HTTP) on the same machine? Besides, it's not a good practice to set up many services on the same machine. Though, many things depend on the traffic load and location of the server (in the Internet or in the friendly LAN).
To my mind you'd better use some GNU/Linux than Win 2003/2008 on an old PC.

3. Do you think you really need 5 ethernet cards? Yes, it's possible to set up the router with 1 WAN and 4 LAN interfaces. But it's rather unusual.
1.old pc means: 512 mb of ram ddr2,40gb ata WD,2 GHz Processor,1 dvd rom,mainboard 6x pci,1 vga agp 8x...2x usb ..OLD

2.Most important for me is run that router,with all cards without FTP,HTTP web server,it is secondary ...That Will be used only for Lan pinging by 4 computers in school,becase I have it as a "GRADUAL WORK",..i dont know correct name in english do you understand me? Ok. I think too that LINUX is better solution for my situation as a WIN SVR.

3.I must have it because my work must not be very easy ,so ...what I must do first on start??
 
Old 10-11-2011, 03:07 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
There are specialty distributions specifically designed to be used as a router.
Here is a list from Wikipedia: http://en.wikipedia.org/wiki/List_of..._distributions
One is pfSense which runs on BSD. Some have web based configurations.

Also look in the www.tldp.org website for howtos on routers and switches.
http://tldp.org/HOWTO/HOWTO-INDEX/networking.html

also look for howtos on bonding and the Advanced Linux Routing document: http://lartc.org/lartc.pdf
A gateway computer will probably also contain a firewall, dhcp server, and sometimes a proxy server.

You will also want to read up on firewall rules.
If you want to configure a proxy, that would be done with Squid.

The tldp.org site also contains the O'Reilly book Linux Network Administration Guide.
 
Old 10-11-2011, 03:26 AM   #5
tmk
LQ Newbie
 
Registered: Oct 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jschiwal View Post
There are specialty distributions specifically designed to be used as a router.
Here is a list from Wikipedia: http://en.wikipedia.org/wiki/List_of..._distributions
One is pfSense which runs on BSD. Some have web based configurations.

Also look in the www.tldp.org website for howtos on routers and switches.
http://tldp.org/HOWTO/HOWTO-INDEX/networking.html

also look for howtos on bonding and the Advanced Linux Routing document: http://lartc.org/lartc.pdf
A gateway computer will probably also contain a firewall, dhcp server, and sometimes a proxy server.

You will also want to read up on firewall rules.
If you want to configure a proxy, that would be done with Squid.

The tldp.org site also contains the O'Reilly book Linux Network Administration Guide.
Thanks for your response. I looked on wiki ,som special distributions, but I dont know which version of distrib is best solution for my situation. Many of distribs supports only 2 NIC, 1 for In , 1 for out + switch ...i want it WITHOUT use swich.
 
Old 10-11-2011, 04:06 AM   #6
tmk
LQ Newbie
 
Registered: Oct 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
sorry,but I need " cook book " where is step by step..cause Im newguy (( can U help me with more details?
 
Old 10-11-2011, 04:32 AM   #7
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
you can try LiveCD router
or see
linux router how-to
or
linux-as-router-for-dsl
 
Old 10-11-2011, 05:10 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
See untangle linux maybe also.
 
Old 10-12-2011, 01:24 AM   #9
tmk
LQ Newbie
 
Registered: Oct 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jefro View Post
See untangle linux maybe also.
I look for www.untangle.com - and there are many of software from that company..Wich from those I should use?

Does have anybody own experience with my problem??
 
Old 10-12-2011, 10:06 AM   #10
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
to accomplish this properly you really only need a pair of nics and a wireless card, one nic would be the 'wan' interface and the other nic+the wifi card would be the 'lan' interface (http://www.linuxquestions.org/questi...rfaces-369455/ should give you an idea of how to do that) after that all you need is a hub or switch to split the lan interface into multiple ports, this is how router appliances achieve this as well, except the switch is built in.
 
Old 10-12-2011, 02:11 PM   #11
tmk
LQ Newbie
 
Registered: Oct 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frieza View Post
to accomplish this properly you really only need a pair of nics and a wireless card, one nic would be the 'wan' interface and the other nic+the wifi card would be the 'lan' interface (http://www.linuxquestions.org/questi...rfaces-369455/ should give you an idea of how to do that) after that all you need is a hub or switch to split the lan interface into multiple ports, this is how router appliances achieve this as well, except the switch is built in.
This is good idea,but I dont want to use switch...cause it will be too easy on my "Practise Final Graduation"..Is any solution do it without switch builted in,only with 5 Lan adapters + 1 wifi ??
 
Old 10-12-2011, 03:39 PM   #12
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
You can use a product that you wish. You need to see what fits your needs. Various distro's offer choices. Untangle is a company like some others that offer both free and commercial choices. Some companies also offer dedicated hardware along with free and commercial choices.
 
  


Reply



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
Building a Router - LFS advice on a router distro Shalkith Linux From Scratch 1 02-07-2009 08:08 PM
Building a router.... ahale1987 Linux - Networking 7 12-19-2007 09:11 PM
Building A Router nomb Linux - Networking 6 10-19-2007 05:08 PM
Building a router... THE RADICAL Linux - Networking 10 11-21-2005 07:33 PM
Building a router, need to buy a little router case. gian2oo1 Linux - Hardware 4 04-22-2005 02:18 PM

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

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