View previous topic :: View next topic |
Author |
Message |
emilio_wuerges n00b

Joined: 07 Jul 2005 Posts: 6
|
Posted: Mon Mar 15, 2010 8:31 pm Post subject: [Gentoo Internet Router] Basic configuration help |
|
|
Hello,
During all my life I only had 1 valid IP address and used the Gentoo Home Router guide to set up my network.
But now I'm in a situation that I have a range of ips xxx.xxx.60.240/255.255.255.192.
So I'm lost. I don't even know how to start.
I want to setup my network so 1 machine will serve as a firewall and DHCP servers.
What should I do? Do you know where I find a nice guide to do it? |
|
Back to top |
|
 |
d2_racing Bodhisattva


Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Mon Mar 15, 2010 8:35 pm Post subject: |
|
|
Ok, if I understand, you will have a box in front of your lan, and all your box with pass thrue that box.
If so, you will need to use the forward command, so that the trafic can pass from the net, thrue the firewall and end up on your box.
And the same goes for the other direction. |
|
Back to top |
|
 |
emilio_wuerges n00b

Joined: 07 Jul 2005 Posts: 6
|
Posted: Mon Mar 15, 2010 8:57 pm Post subject: |
|
|
Hi.
Thanks for the quick reply.
My network setup will be quite simple:
(Internet) -- eth0 -- (linux firewall) -- eth1 -- switch -- (my boxes).
So the configuration you suggest is something like:
iptables -A FORWARD -i eth0 -d *.60.240/26 -j ACCEPT
iptables -A FORWARD -i eth1 -d -j ACCEPT
But what about routing?
What dhcp server should I setup? |
|
Back to top |
|
 |
d2_racing Bodhisattva


Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Tue Mar 16, 2010 12:43 am Post subject: |
|
|
emilio_wuerges wrote: | But what about routing? |
It will depends, because you will at least open port from your firewall to your lan and for routing, you will need to ajust your box so that the default gateway will be for example 192.168.1.1 and that will be the IP adress of your firewall, or the first ip adress that will be available from your range of ip.
And for the dhcp, I don't know, but make sure that your firewall runs a dhcp server, because your router will be not be able to do his normal job. |
|
Back to top |
|
 |
shazeal Apprentice


Joined: 03 May 2006 Posts: 208 Location: New Zealand
|
|
Back to top |
|
 |
d2_racing Bodhisattva


Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Tue Mar 16, 2010 3:21 am Post subject: |
|
|
That's a nice wiki indeed  |
|
Back to top |
|
 |
d2_racing Bodhisattva


Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
|
Back to top |
|
 |
|