LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 01-16-2005, 09:49 PM   #1
Gates1026
Member
 
Registered: Sep 2003
Location: Iowa
Distribution: Slackware 9.1
Posts: 155

Rep: Reputation: 30
Home network setup with network firewall/router


Right now I have a home network setup with a dsl router forwarding all ports to a single linux machine. I want all windows machines to also have a firewall protecting them so I would like to setup a dual homed machine to act as a dhcp gateway and a firewall/router.

Here is my question:

To do this, how do I configure the dsl router? Do I assign my router to forward all ports to the firewall and have the firewall have a non-routable ip address? This would have the packets NAT translated twice instead of once. The router must login to a server with a username and password so I cannot get rid of it. How do most people deal with this? Thanks for the advice in advance!
 
Old 01-16-2005, 11:55 PM   #2
Dommy
Member
 
Registered: Jul 2004
Location: Canberra
Distribution: Mint 7
Posts: 204

Rep: Reputation: 30
You have pretty much answered your own question.

1. Leave the dsl router as is , let itdo its own thing.
2. linux box acts as dhcp server and dns server and firewall
3. point windows boxes at linux box

I had a similar setup except that my linux box had to dial-up my ISP
 
Old 01-17-2005, 06:04 AM   #3
Gates1026
Member
 
Registered: Sep 2003
Location: Iowa
Distribution: Slackware 9.1
Posts: 155

Original Poster
Rep: Reputation: 30
Thank you for your reply!

One of the questions that I really had was this:

Can the firewall/dhcp server take the routable ip address or does it need to take a private ip address for its outside connection? I assume that the router and the firewall cannot take the same ip address. I know that the router must login to the isp server with a username and password. So does my firewall have a connection:

1. eth0 - outside ip address public (ex: 63.x.x.x)
eth1 - inside ip address private (192.168.0.1)

or

2. eth0 - outside ip address private (10.0.0.2)
eth1 - inside ip addresss private (192.168.0.1)
 
Old 01-17-2005, 07:26 PM   #4
Dommy
Member
 
Registered: Jul 2004
Location: Canberra
Distribution: Mint 7
Posts: 204

Rep: Reputation: 30
2. eth0 - outside ip address private (10.0.0.2)
eth1 - inside ip addresss private (192.168.0.1)

Correct answer. Your modem handles the external assigned ip address , it has an internal local address to which you connect eth0 , your firewall is set up to route all traffic from your eth1 intranet (192.168.0) network to eth0 after processing thru the firewall rules. Should all work

Now comes the tricky part, setting up the firewall. Don't forget to make your firewall accessible to your intranet if don't want to havea seperate screen attached to it.
 
Old 01-17-2005, 08:26 PM   #5
GUIPenguin
Member
 
Registered: Aug 2004
Location: Maine
Distribution: Gentoo Linux
Posts: 239

Rep: Reputation: 30
if you looking into setting up or using a linux box as a firewall/router I would look into IPcop or Smoothwall
http://www.ipcop.org/

one of the best firewalling/routing distros as is smoothwall each give you intrustion detection/routing/dhcp/firewall/logging/traffic graphs..etc

ipcop 1.4 is the newest, and is very good at detecting network cards, step by step menu sets up your system and all adminstration is done through web gui 192.168.0.1:81


Last edited by GUIPenguin; 01-17-2005 at 08:31 PM.
 
  


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
Home Network Setup Help Linux Server running Windoze XP clients + ADSL router BeaverusIV Linux - Networking 10 04-22-2005 04:07 PM
home network router problem sprachy Linux - Networking 4 04-21-2004 11:38 AM
how do I setup a home network? Lindy Linux - Networking 4 12-09-2003 03:15 PM
Newbie wanna setup up a linux network on existing home network... marvc Linux - Networking 3 03-19-2003 09:02 PM
How to Setup Firewall for home network julesbrat Linux - Networking 1 05-19-2002 03:17 PM

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

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