LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 03-10-2006, 12:22 PM   #16
jrd426
LQ Newbie
 
Registered: Mar 2006
Distribution: rh9.0
Posts: 10

Original Poster
Rep: Reputation: 0

This is fun!...
well, the newb may be getting a step closer..lol..i removed the following line from the rc.local file

route add -net 192.168.0.0 netmask 255.255.255.0 gw 172.16.0.2

and now my pc's on the 192.168.0 home network can ping the linux eth1 (192.168.0.2) nic. Not only that, from a a pc say 192.168.0.3 i can also ping the outside linux eth1 nic (172.16.0.2)..This tells me that the linux box is routing packets across its 2 nic cards and back. I tried pinging the dsl router futher towards the internet (172.16.0.1) and still no go..I'm getting warmer..lol

I'm thinking that now all i need to do is put a route on the dsl router of some sort.
On the dsl router there is a tab called "static route entry" where 8 different routes can be added with the following fields listed for each route.

Destination IP Address :
IP Subnet Mask :
Gateway IP Address :
Metric (box to enter a value default=0)
Private (checkbox)
Active (checkbox)

not sure what should be put in here but maybe i'll take a guess at it. My ip address is dynamically assigned by my isp.

i'm almost excited..

jr
 
Old 03-10-2006, 03:01 PM   #17
jrd426
LQ Newbie
 
Registered: Mar 2006
Distribution: rh9.0
Posts: 10

Original Poster
Rep: Reputation: 0
just an update, things are working fine thanks to all your guys!..persistance pays off. I finally needed to add the correct static route to my dsl router and all is good..very pleased and looking forward to the next project of using the linux box to make the connection to my dsl provider instead of the out of the box dsl router thats currently doing it. Also interested in learning how to customize the iptables in rh.9 but one thiing at a time i guess

thanks again to all!
jr
 
Old 03-10-2006, 03:03 PM   #18
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
If you want a nice easy gui that will allow you to create firewall rules, try fwbuilder. You can even generate the rules on one machine and install them on another.
 
Old 03-10-2006, 07:16 PM   #19
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,291

Rep: Reputation: 62
Quote:
Originally Posted by jrd426
just an update, things are working fine thanks to all your guys!..persistance pays off. I finally needed to add the correct static route to my dsl router and all is good..very pleased and looking forward to the next project of using the linux box to make the connection to my dsl provider instead of the out of the box dsl router thats currently doing it. Also interested in learning how to customize the iptables in rh.9 but one thiing at a time i guess thanks again to all! jr
Good to hear it is now all working.

Last edited by fotoguy; 03-10-2006 at 07:36 PM.
 
Old 03-10-2006, 08:04 PM   #20
jrd426
LQ Newbie
 
Registered: Mar 2006
Distribution: rh9.0
Posts: 10

Original Poster
Rep: Reputation: 0
pljvaldez, fwbuilder sounds interesting but is there a bunch of different programs \ apps i need in order for me to use it? Never having to d\l and install something in linux yet, i'm wondering how straight forward of a d\l install it would be to get it up and running.

thanks.
jr
 
Old 03-10-2006, 08:07 PM   #21
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
I guess now that I look at it, it needs iptables to run. What kernel are you using? < 2.4 use ipchains, I believe...
 
Old 03-11-2006, 08:45 AM   #22
jrd426
LQ Newbie
 
Registered: Mar 2006
Distribution: rh9.0
Posts: 10

Original Poster
Rep: Reputation: 0
kernel 2.4 and yes iptables is on the box.

tks,jr
 
Old 03-11-2006, 06:26 PM   #23
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,291

Rep: Reputation: 62
There are plenty of scripts around that you can use, save you the trouble of writing one yourself. This can also help you to understand how the script works until your confident enough to create your own.
 
  


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
Setting up an old box to do IP routing Agrajag9 Linux - Networking 1 11-26-2004 01:06 AM
routing two isp connection to lan using linux box tisson Linux - Networking 2 09-08-2004 08:39 PM
Routing network connection to OSX via a SuSE box shankar13 Linux - Networking 2 09-02-2004 12:12 PM
routing http traffic to the correct box on subnet nodine Linux - Security 1 07-15-2004 09:51 AM
A routing Linux to win system problem jarethfox Linux - Networking 2 08-03-2003 09:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:44 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