Overclock.net › Forums › Specialty Builds › Servers › How to turn a linux box into a router/dhcp server?
New Posts  All Forums:Forum Nav:

How to turn a linux box into a router/dhcp server?

post #1 of 13
Thread Starter 
Title pretty much says it all...

More Detail: How do you turn your linux box into a router/dhcp server? I also want to be able to monitor the amount of bandwidth coming through the server.
The Money Pit
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 930 ASUS P6X58D-E Three GTX 470 12GB DDR3 1600 Mushkin 
Hard DriveOSMonitorPower
Two 60GB Mushkin SSD, Two 1TB WD CB Raid0 Windows 7 Ultimate x64 Two 22" Samsung 1000w Mushkin PSU 
Case
Antec 1200 
  hide details  
Reply
The Money Pit
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 930 ASUS P6X58D-E Three GTX 470 12GB DDR3 1600 Mushkin 
Hard DriveOSMonitorPower
Two 60GB Mushkin SSD, Two 1TB WD CB Raid0 Windows 7 Ultimate x64 Two 22" Samsung 1000w Mushkin PSU 
Case
Antec 1200 
  hide details  
Reply
post #2 of 13
I believe you're looking for something like Untangle or Smoothwall.
post #3 of 13
Quote:
Originally Posted by mbudden;13311396 
I believe you're looking for something like Untangle or Smoothwall.

That is probably your best answer. You could install a dhcp server, but as for router, not sure what app packages to get.....
post #4 of 13
You don't need any packages. Use the route utility to setup a routing table. If it's just a gateway to the internet, it's probably going to be one rule.
Akiyama Mio
(13 items)
 
  
CPUMotherboardGraphicsRAM
E6420 @ stock, 0.98v Asus P5N-E SLI Gainward GTX 460 1GB @ 800/1600/1900 2x2GB Kingston @ 800MHz 5-5-5-15 2T 
Hard DriveOptical DriveOSMonitor
WD 250GB, 320GB SATA/3, 16MB Cache, Seagate 1TB LG GSA-H62N 18x SATA Ubuntu 9.10 x86 & Win7 x86 Asus VW222U 
KeyboardPowerCase
Logitech Classic Corsair 650HX NZXT Apollo Black 
  hide details  
Reply
Akiyama Mio
(13 items)
 
  
CPUMotherboardGraphicsRAM
E6420 @ stock, 0.98v Asus P5N-E SLI Gainward GTX 460 1GB @ 800/1600/1900 2x2GB Kingston @ 800MHz 5-5-5-15 2T 
Hard DriveOptical DriveOSMonitor
WD 250GB, 320GB SATA/3, 16MB Cache, Seagate 1TB LG GSA-H62N 18x SATA Ubuntu 9.10 x86 & Win7 x86 Asus VW222U 
KeyboardPowerCase
Logitech Classic Corsair 650HX NZXT Apollo Black 
  hide details  
Reply
post #5 of 13
Quote:
Originally Posted by Coma;13311468 
You don't need any packages. Use the route utility to setup a routing table. If it's just a gateway to the internet, it's probably going to be one rule.

I didn't think it would take much, but I've used untangle and it's acutally quite easy, but if you want to do more with the server than just be a firewall router, then adding the packages to linux is easier.
post #6 of 13
Also, you'll probably need at least two NICs in this linux router...I remember doing this with Dachstein circa 2002. On a single floppy. Not a lot of fun (no convenient web interface) but I learned a lot.

edit: couldn't resist, had to look it up. I can't believe I actually remembered that name or that it still exists... That seems like such a long time ago I was doing that.
Edited by subassy - 4/28/11 at 10:58pm
 
VM Server
(17 items)
 
 
CPUGraphicsRAMHard Drive
Intel Ivy Bridge Core i7-3630QM nVidia GeForce GTX 680M 16GB DDR3 1600MHz Dual Channel Memory (2 SODIMMS) Hard Drive: Serial-ATA II 3GB/s 
Hard DriveOSMonitorPower
Hard Drive: Serial-ATA II 3GB/s Windows 10 Pro x64 17.3" FHD 16:9 (1920x1080) Battery: Smart Li-ion Battery (8-Cell) 
Audio
Sound Blaster Compatible 3D Audio 
CPUMotherboardGraphicsRAM
Intel Core i7 860 Biostar T5 XE Radeon HD 5870 Corsair 16GB  
Hard DriveHard DriveOptical DriveOS
Western Digital hard drive wd1001fals-00e8b0 Maxtor 300GB I don't need no stinking optical drive Microsoft Windows 7 Ultimate x64 
MonitorMonitorKeyboardPower
HP ZR24w 24'' Samsung SyncMaster 24" logitech wireless k360 Seventeam ST-850ZAF 850W ATX 
CaseMouseAudioAudio
Thermaltake V9 Black Edition Logitech G500 Programmable Gaming Mouse FiiO E7 USB DAC and Portable Headphone Amplifier Sennheiser HD555 Professional Headphones 
  hide details  
Reply
 
VM Server
(17 items)
 
 
CPUGraphicsRAMHard Drive
Intel Ivy Bridge Core i7-3630QM nVidia GeForce GTX 680M 16GB DDR3 1600MHz Dual Channel Memory (2 SODIMMS) Hard Drive: Serial-ATA II 3GB/s 
Hard DriveOSMonitorPower
Hard Drive: Serial-ATA II 3GB/s Windows 10 Pro x64 17.3" FHD 16:9 (1920x1080) Battery: Smart Li-ion Battery (8-Cell) 
Audio
Sound Blaster Compatible 3D Audio 
CPUMotherboardGraphicsRAM
Intel Core i7 860 Biostar T5 XE Radeon HD 5870 Corsair 16GB  
Hard DriveHard DriveOptical DriveOS
Western Digital hard drive wd1001fals-00e8b0 Maxtor 300GB I don't need no stinking optical drive Microsoft Windows 7 Ultimate x64 
MonitorMonitorKeyboardPower
HP ZR24w 24'' Samsung SyncMaster 24" logitech wireless k360 Seventeam ST-850ZAF 850W ATX 
CaseMouseAudioAudio
Thermaltake V9 Black Edition Logitech G500 Programmable Gaming Mouse FiiO E7 USB DAC and Portable Headphone Amplifier Sennheiser HD555 Professional Headphones 
  hide details  
Reply
post #7 of 13
That's right you will need two NICs. I'm in the process of building an Untangle machine, I just need a hard drive to complete it. My Amahi server still handles DNS and DHCP though.
Containment
(18 items)
 
Metamorphosis
(19 items)
 
 
CPUMotherboardGraphicsRAM
AMD 955BE Gigabyte GA-770TA-UD3 Asus GTX560ti 12GB DDR3 1333 CL7 
Hard DriveHard DriveOptical DriveCooling
Spinpoint F3 750GB Seagate 1TB None Custom loop 
OSMonitorMonitorKeyboard
W7 Ultimate x64 Asus ML249H Asus VE228H Alienware TactX 
PowerCaseMouseMouse Pad
OCZ 550W Antec 902 Alienware TactX Razer Sphex 
AudioAudio
E-MU 0404 USB Ultrasone DJ1 Pro Headphones 
CPUCPUMotherboardGraphics
Xeon E5405 Xeon E5405 SuperMicro X7DA3 ATI X1800 
RAMHard DriveCoolingCooling
16GB DDR2 FB-DIMM Various Hyper 101 Hyper 101 
OSMonitorPowerCase
ESXi 5.0 Headless Antec NEO ECO 620W Rosewill RSV-L4000 
MouseMouse PadOtherOther
None None HP P400 IPMI Card 
Other
HP Dual Gigabit NIC 
  hide details  
Reply
Containment
(18 items)
 
Metamorphosis
(19 items)
 
 
CPUMotherboardGraphicsRAM
AMD 955BE Gigabyte GA-770TA-UD3 Asus GTX560ti 12GB DDR3 1333 CL7 
Hard DriveHard DriveOptical DriveCooling
Spinpoint F3 750GB Seagate 1TB None Custom loop 
OSMonitorMonitorKeyboard
W7 Ultimate x64 Asus ML249H Asus VE228H Alienware TactX 
PowerCaseMouseMouse Pad
OCZ 550W Antec 902 Alienware TactX Razer Sphex 
AudioAudio
E-MU 0404 USB Ultrasone DJ1 Pro Headphones 
CPUCPUMotherboardGraphics
Xeon E5405 Xeon E5405 SuperMicro X7DA3 ATI X1800 
RAMHard DriveCoolingCooling
16GB DDR2 FB-DIMM Various Hyper 101 Hyper 101 
OSMonitorPowerCase
ESXi 5.0 Headless Antec NEO ECO 620W Rosewill RSV-L4000 
MouseMouse PadOtherOther
None None HP P400 IPMI Card 
Other
HP Dual Gigabit NIC 
  hide details  
Reply
post #8 of 13
Just install like an OS.... pfSense, Untangle, Endian, ClearOS, Smoothwall.


http://en.wikipedia.org/wiki/List_of_router_or_firewall_distributions
Once again...
(13 items)
 
  
CPUMotherboardGraphicsRAM
i7 920 [4.28GHz, HT] Asus P6T + Broadcom NetXtreme II VisionTek HD5850 [900/1200] + Galaxy GT240 2x4GB G.Skill Ripjaw X [1632 MHz] 
Hard DriveOSMonitorKeyboard
Intel X25-M 160GB + 3xRAID0 500GB 7200.12 Window 7 Pro 64 Acer H243H + Samsung 226BW XARMOR-U9BL  
PowerCaseMouseMouse Pad
Antec Truepower New 750W Li Lian PC-V2100 [10x120mm fans] Logitech G9 X-Trac Pro 
  hide details  
Reply
Once again...
(13 items)
 
  
CPUMotherboardGraphicsRAM
i7 920 [4.28GHz, HT] Asus P6T + Broadcom NetXtreme II VisionTek HD5850 [900/1200] + Galaxy GT240 2x4GB G.Skill Ripjaw X [1632 MHz] 
Hard DriveOSMonitorKeyboard
Intel X25-M 160GB + 3xRAID0 500GB 7200.12 Window 7 Pro 64 Acer H243H + Samsung 226BW XARMOR-U9BL  
PowerCaseMouseMouse Pad
Antec Truepower New 750W Li Lian PC-V2100 [10x120mm fans] Logitech G9 X-Trac Pro 
  hide details  
Reply
post #9 of 13
technically, you don't really need two NICs... Linux has support for 802.1q VLAN... you could trunk two or more VLANs to the same port and just route between VLANs.

as for routing... i don't know if the OP has intentions of running dynamic routing protocols or simply routing IP with static routes? if you're going to do BGP or OSPF, then you'll need something like Zebra or whatever successor followed it.. (Quagga?) Linux has some pretty awesome routing features if you want to do fancy stuff like multiple routing tables with packet tagging.

dhcp server is easy.. just install the dhcpd package and configure one file /etc/dhcpd.conf or where ever it is in your distro.
TAIPEI
(10 items)
 
AURORA
(13 items)
 
 
MotherboardGraphicsRAMHard Drive
ASRock X99 Extreme11 EVGA GTX 980 Superclocked 32GB 8x4GB Corsair LPX Samsung XP941  
Hard DriveCoolingOSMonitor
Western Digital 3TB RE Noctua NH-D15 Fedora 21 Linux Samsung S27D590C 
PowerCase
Seasonic SS-1200XP Cooler Master Cosmos II 
CPUMotherboardGraphicsRAM
Dual Quad-core L5430 2.66Ghz 12mb cache Intel 5000 chipset ATI ES1000 64GB FBDIMM DDR2 PC2-5300 667Mhz 
Hard DriveOSPower
WD3000FYYZ PERC H700 w/ 512MB cache CentOS 7.2.1511 950W x2 
  hide details  
Reply
TAIPEI
(10 items)
 
AURORA
(13 items)
 
 
MotherboardGraphicsRAMHard Drive
ASRock X99 Extreme11 EVGA GTX 980 Superclocked 32GB 8x4GB Corsair LPX Samsung XP941  
Hard DriveCoolingOSMonitor
Western Digital 3TB RE Noctua NH-D15 Fedora 21 Linux Samsung S27D590C 
PowerCase
Seasonic SS-1200XP Cooler Master Cosmos II 
CPUMotherboardGraphicsRAM
Dual Quad-core L5430 2.66Ghz 12mb cache Intel 5000 chipset ATI ES1000 64GB FBDIMM DDR2 PC2-5300 667Mhz 
Hard DriveOSPower
WD3000FYYZ PERC H700 w/ 512MB cache CentOS 7.2.1511 950W x2 
  hide details  
Reply
post #10 of 13
Thread Starter 
Sorry I haven't got back to you all quickly.

Here is the setup of my servers that I have. I would greatly appreciate any configurations you all recommend. I have two servers...

First Box(1U):
Two Intel Xeon 2.8Ghz(Single Cores)
3GB DDR ECC REG
Two 89GB 15K SCSI Drives
Two Onboard Gigabit LAN Ports
Fiber Channel Card

Second Box(2U):
Two Intel Xeon 3.2Ghz(Dual Cores)
4GB DDR ECC REG
Six 300GB 10K SCSI Drives
Two Onboard Gigabit LAN Ports
Two Gigabit LAN Ports on a PCI Card

I really want the second box to be a storage/game server for obvious reasons and I was thinking about putting the first box as my DHCP/Firewall server. However, the 2U box is the one with the second LAN Card in it. What do you all recommend?
The Money Pit
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 930 ASUS P6X58D-E Three GTX 470 12GB DDR3 1600 Mushkin 
Hard DriveOSMonitorPower
Two 60GB Mushkin SSD, Two 1TB WD CB Raid0 Windows 7 Ultimate x64 Two 22" Samsung 1000w Mushkin PSU 
Case
Antec 1200 
  hide details  
Reply
The Money Pit
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 930 ASUS P6X58D-E Three GTX 470 12GB DDR3 1600 Mushkin 
Hard DriveOSMonitorPower
Two 60GB Mushkin SSD, Two 1TB WD CB Raid0 Windows 7 Ultimate x64 Two 22" Samsung 1000w Mushkin PSU 
Case
Antec 1200 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Servers
Overclock.net › Forums › Specialty Builds › Servers › How to turn a linux box into a router/dhcp server?