LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   need help with setup linux to be a router (http://www.linuxquestions.org/questions/linux-newbie-8/need-help-with-setup-linux-to-be-a-router-591619/)

LinuxGreenKen 10-13-2007 11:31 PM

need help with setup linux to be a router
 
I have been googling this for days now and have had some hard time finding info that isnt way too far out there for me ...

ok this what i want to do ..

get ride of my old d-link 604 router and setup my own ...

I have a 933 p3 with 512 of ram and a 40 gig hard drive
one onboard land (eth1)
3com 10/100 (eth0)

system is running fedora 7 on it
any help or any links that would help me would be wicked....

Tinkster 10-13-2007 11:41 PM

Hi,

and welcome to LQ!

I assume your set-up will be something like this?
Code:

INTERNET <------> eth0-Piii-eth1 <----> SWITCH
I'll also assume that the eth0-set-up as such is working
(the machine itself already has working internet connectivity)?

What you will be wanting to do is set up NATing for traffic
from eth1 to eth0 inside the machine. You do that using
iptables - if you're not confident with iptables, there's
tools to help you. One nice web-interface would be
http://easyfwgen.morizot.net/
where you can define all the requirements interactively,
and then download the script for your peruse.



Cheers,
Tink

LinuxGreenKen 10-14-2007 12:12 AM

Quote:

Originally Posted by Tinkster (Post 2923437)
Hi,

and welcome to LQ!

I assume your set-up will be something like this?
Code:

INTERNET <------> eth0-Piii-eth1 <----> SWITCH
I'll also assume that the eth0-set-up as such is working
(the machine itself already has working internet connectivity)?

What you will be wanting to do is set up NATing for traffic
from eth1 to eth0 inside the machine. You do that using
iptables - if you're not confident with iptables, there's
tools to help you. One nice web-interface would be
http://easyfwgen.morizot.net/
where you can define all the requirements interactively,
and then download the script for your peruse.



Cheers,
Tink


ty for the info ,,

but the connection is as follows

Code:

INTERNET <------> eth1-Piii-eth0 <----> computer .2.
and yes eth1 has a connection np

so i take i will need a switch?????
and thanks i will check out that site for sure

LinuxGreenKen 10-14-2007 12:31 AM

Ps i there a way that i can connect the machine(s)

Code:

CPE ---1]
        ]----------linux Router---------net connection
CPE ---2]


Tinkster 10-14-2007 03:08 AM

You won't need a switch with just one PC behind your router. With
two you will (or you'd obviously need a third NIC in the linux box,
and set-up NATing for both interfaces).

And to save the file from the website I'd right-click it and go
save as, but copy & paste will work just fine. As always in Linux,
there's more than one way to do it ;}


Cheers,
Tink


All times are GMT -5. The time now is 01:36 AM.