Review your favorite Linux distribution.
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 04-05-2006, 03:14 PM   #1
LQ Newbie
Registered: Feb 2006
Posts: 13

Rep: Reputation: 0
networking question

this may reveal my ignorance, but what the hell. how would you set up a linux box to be a webserver/firewall for say a home network. would you put the broadband connection into the linux system and them back out into a wireless router? if so, how do you do this? are there ethernet out cards? as i said, this might reveal my ignorance, but i'd like to get a better understanding of how this works.
Old 04-05-2006, 03:20 PM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
well basically yeah. a box with two ethernet cards, one for the internet, one for the internal connection. the webserver side is largely irrelevant in that scenario, generally you wouldn't run a server on your firewall, you would have a dedicated firewall and portforward to an internal web server. there are dedicated linux firewalls like ipcop and smoothwall, or you can take a server distro like CentOS and enable routing and firewall functionality on it, but it's not nearly as easy to manage as a dedicated firewall distro.
Old 04-05-2006, 03:24 PM   #3
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 272Reputation: 272Reputation: 272
There's a lot of different options. If you already have a wireless router/firewall (I have a Linksys WRT54G), then IMHO the best thing is to setup the broadband into the router and then have the webserver in the DMZ (demilitarized zone) of the router if you want external access to it or on the inside of the LAN if you want it only internal.

If you want the linux box to do everything, then you need a machine with 2 network cards (plus one wireless network card if you want a wireless setup). Then you install your distro of choice and connect your broadband to one card, the other wired card to you hub/switch for all your internal machines, and use your wireless card for the wireless network. You'll have to enable things like NAT & masquearding (router stuff), iptables (firewall rules), DHCP server, etc


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
networking,question... JT13 Linux - Networking 4 06-27-2005 07:15 AM
networking question wozzle Linux - Networking 5 10-28-2004 08:42 AM
Networking question Rekna Linux - Networking 1 06-16-2004 10:59 PM
Networking Question ProtoformX Linux - Networking 2 03-17-2004 01:41 PM
Networking question OtisLinux Linux - Software 14 02-19-2004 12:07 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:49 AM.

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