View previous topic :: View next topic |
Author |
Message |
u2mike Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 06 Nov 2003 Posts: 209
|
Posted: Fri May 14, 2004 10:08 pm Post subject: Seting up a router? |
|
|
Ok,
I'm trying to setup a linux router for a friend of mine. I allready have one at home but I didn't set it up personally so I'm still new at this.
So far what I've done is setup the two network cards, one connects to the internet and the other gets a local IP (192.168.1.1). I setup dhcpd and it is working. Each computer on the network gets an IP from 2-9. They also get the correct DNS address for the ISP.
But this is where I'm stuck, how do I get the network that I setup to be able to reach the outside world. Right now I can contact the router machine, but no further then that. Note, I do not have iptables setup right now, I don't need a firewall yet, are ip tables necessary? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
LeTene Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/1660539411409107d933978.jpg)
Joined: 02 Mar 2004 Posts: 348 Location: Ah'll glass ye!
|
Posted: Fri May 14, 2004 10:28 pm Post subject: Re: Seting up a router? |
|
|
u2mike wrote: | ...I don't need a firewall yet, are ip tables necessary? |
Yes, you need iptables to use the masquerade functionallity that pretends all packets from private network look like they are coming from the router (and translate back to the correct machine when replies come back).
A quick search of the forums for "masquerade" (and a peek at http://wiki.gentoo-portage.com's Home Server guide) will get you there. _________________ Docs, Tips & Tricks at the Gentoo Wiki page. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
u2mike Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 06 Nov 2003 Posts: 209
|
Posted: Sat May 15, 2004 12:26 am Post subject: |
|
|
Thanks for the link. It works fine. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
davidblewett Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/222714518404f80b262763.jpg)
Joined: 15 Feb 2004 Posts: 274 Location: Indiana
|
Posted: Tue May 18, 2004 4:49 pm Post subject: |
|
|
Shorewall is a great front-end for iptables. You can configure it to do masquerading, firewalling and DNAT'ing. They've done a really good job of getting all the bases covered for iptables. _________________ No guilt in life, no fear in death
this is the power of Christ in me
From lifes first cry to final breath
Jesus commands my destiny
-- Newsboys, "In Christ Alone", "Adoration: The Worship Album" |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|