LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 02-06-2004, 02:31 PM   #1
GNU
LQ Newbie
 
Registered: Sep 2003
Location: CloseToYou
Posts: 14

Rep: Reputation: 0
Unhappy How To Install Router On RedHat 9.0


I was doing some research about that but every explanation i get was really guffy. So The story is that i installed the redhat 9.0 with 2 ethernet cards and because of my links*ys router is defected i never bother me to install a linux router on my mashine. Please if somebody would be so nice end explain to me how to install Linux router step by step what to do exept the cabling "i know that". I am very sure that this information will help other users like me .
Thank you very much!!!
 
Old 02-06-2004, 07:29 PM   #2
tricky_linux
Member
 
Registered: Jul 2003
Distribution: Red Hat Linux 9.0; Old and Solid
Posts: 674

Rep: Reputation: 30
i am not quite understanding what you trying to do.
i assume that you want to add a new router since your old one was defected.
if that's the case, you don't need to configure the router in order for it to work.
you just do the " i know how to cable my net" part.
 
Old 02-06-2004, 08:12 PM   #3
2Gnu
Senior Member
 
Registered: Jan 2002
Location: Southern California
Distribution: Slackware
Posts: 1,880

Rep: Reputation: 51
I think the poster is asking for help in turning a Linux box with 2 NICs into a router.

Try Smoothwall or ClarkConnect to see if they will meet the requirement. Otherwise, check out http://www.distrowatch.org for many more options.
 
Old 02-06-2004, 11:15 PM   #4
GNU
LQ Newbie
 
Registered: Sep 2003
Location: CloseToYou
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by 2Gnu
I think the poster is asking for help in turning a Linux box with 2 NICs into a router.

Try Smoothwall or ClarkConnect to see if they will meet the requirement. Otherwise, check out http://www.distrowatch.org for many more options.
YES you ware right ..i will check what i can do ......"the thing is i have 2 nicks and i want to have another maschine "windows based" running from the linux .......i know its posibile but i never bother my self with that untill now btw any extra help ?
 
Old 02-06-2004, 11:37 PM   #5
2Gnu
Senior Member
 
Registered: Jan 2002
Location: Southern California
Distribution: Slackware
Posts: 1,880

Rep: Reputation: 51
Well, I know what you want to do, but not how to do it.
I suspect that the Smoothwall and ClarkConnect sites will have some good documentation. I'd start there.
 
Old 02-07-2004, 01:13 PM   #6
tricky_linux
Member
 
Registered: Jul 2003
Distribution: Red Hat Linux 9.0; Old and Solid
Posts: 674

Rep: Reputation: 30
to Gun
you could just use iptables to do that.
do a "man iptables" to see how to do it.

here is what i think i'll do . but not sure. however you could try & if it doesn't work. just delete it.

change line "net.ipv4.ip-forward=0" to "net.ipv4.ip-forward=1" by using gedit or other text editor.
$service network restart
$iptables stop
$iptables save
$iptables -P INPUT ACCEPT
$iptables -P OUTPUT ACCEPT
$iptables -P FORWARD DROP
$iptables -P FORWARD -i eth0 -o eth1 -m state --state ESTABLISHED, RELATED -j ACCEPT
$iptables -A FORWARD -i eth1 -o eth0 -m state --state ESTABLISHED, RELATED -j ACCEPT
$iptables -t nat POSTROUTING -o eth0 -j MASQUERADE
$iptables -t nat POSTROUTING -o eth1 -j MASQUERADE
$service iptables save
$service iptables start
 
  


Reply



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
redhat 7.1 as a router aristeidis Linux - Networking 0 03-22-2004 07:16 AM
can't see outside behind Redhat router KitM Linux - Networking 7 01-20-2004 06:46 PM
RedHat 7.3 Router komakala Linux - Networking 2 10-24-2003 04:09 PM
Setting up router on redhat 9 someone2 Linux - Networking 1 05-14-2003 05:03 AM
Redhat 8.0 as a Router falconxlc Linux - Networking 2 11-23-2002 12:03 PM

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

All times are GMT -5. The time now is 12:50 PM.

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