LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 10-13-2007, 10:31 PM   #1
LinuxGreenKen
LQ Newbie
 
Registered: Oct 2007
Posts: 3

Rep: Reputation: 0
Question 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....
 
Old 10-13-2007, 10:41 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,950
Blog Entries: 11

Rep: Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860
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
 
Old 10-13-2007, 11:12 PM   #3
LinuxGreenKen
LQ Newbie
 
Registered: Oct 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Tinkster View Post
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
 
Old 10-13-2007, 11:31 PM   #4
LinuxGreenKen
LQ Newbie
 
Registered: Oct 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Ps i there a way that i can connect the machine(s)

Code:
CPE ---1]
         ]----------linux Router---------net connection
CPE ---2]
 
Old 10-14-2007, 02:08 AM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,950
Blog Entries: 11

Rep: Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860
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
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
setup a linux router Court-Jester Linux - Networking 2 07-13-2006 10:05 AM
linux router setup... use iptables??? atuk1 Linux - Networking 2 02-05-2006 04:15 PM
trying to setup linux as router for laptop spooge Linux - Networking 5 09-01-2004 10:37 PM
setup linux firewall/router sub_netter Linux - Networking 4 08-15-2003 06:18 AM
Linux Router, setup???? francisjk Linux - Networking 4 08-08-2002 06:59 PM


All times are GMT -5. The time now is 09:56 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration