LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 02-15-2003, 06:00 PM   #1
jaitropfaim
LQ Newbie
 
Registered: Feb 2003
Location: somewhere on the blue ball
Distribution: SuSE, Red Hat, Debian, Gentoo
Posts: 13

Rep: Reputation: 0
Post routing with Red Hat 8.0 ??


Hi,

finally, i've switched over to red had 8.0...
Unfortunately, i've never configured routing with Red Hat linux before...

here is some data i can give you:
my intranet has 7 computers...
the intranet is on eth0 AND 10.10.10.2/255.255.255.0
the INTERNET(world) is on ippp0 AND the ip allocation is dynamic (212.24.201.X)

what do i have to do so to enable routing?
with SuSE i could configure it with YAST2 (SuSEfirewall settings)...

could someone give me a very easy step by step manual? (I'm not that experienced in linux...)

Thanks in advance for your reply...

C ya Marco
 
Old 02-15-2003, 06:41 PM   #2
mychl
Member
 
Registered: Jul 2001
Location: Earth
Posts: 164

Rep: Reputation: 30
Hi, you will need to implement iptables, which is a firewall/router for linux. RH 8 comes with it, you can check it out at /etc/init.d/iptables, which gets it's input from /etc/sysconfig/iptables (not so sure about this one...)

You will also need to activate packet forwarding....

check out my script below, should help.
 
Old 02-15-2003, 07:25 PM   #3
jaitropfaim
LQ Newbie
 
Registered: Feb 2003
Location: somewhere on the blue ball
Distribution: SuSE, Red Hat, Debian, Gentoo
Posts: 13

Original Poster
Rep: Reputation: 0
Question

first of all thanks for your fast help!

and thanks for your script, but there are 3 more questions according to your script:

1. i need repleace /etc/init.d/iptables with your script...
2. i need to create symbolic links in /etc/rc.d/rc3.d, rc4.d, rc5.d

3. How do i make sure it loads before the network loads? how can i make sure it loads on startup?

Thanks in advance for your help!

C Ya Marco

Last edited by jaitropfaim; 02-15-2003 at 07:31 PM.
 
Old 02-15-2003, 10:23 PM   #4
mychl
Member
 
Registered: Jul 2001
Location: Earth
Posts: 164

Rep: Reputation: 30
Making the sym links in /etc/rc.d/rc3.d will make sure it starts automatically.....

To make sure it starts before the network service you need to call the symlink to iptables a lower number....

EX. The symlinks in /etc/rc.d/rc?.d are of 2 different kinds.

S11script or K11script the number part (11) can be any number, the number specifies order, so S3script will load before S4script.

The K##scripts are for leaving that particular run level.... don't need to worry too much about those......

So if your network script is linked like this...
/etc/rc.d/rc3.d/S12network, then make your iptables link have a lower number than 12.

/etc/rc.d/rc3.d/S10iptables

To make a symlink, you use the ln -s command.

ln -s path/to/script nameOfScript

ln -s /etc/init.d/iptables /etc/rc.d/rc3.d/S10iptables

You also need to make sure you go through your iptables script and redefine any variables that you need for your system.

Also, go over the rules.... learn how they work so you can modify them in the future.....

Good luck
 
Old 02-16-2003, 07:51 AM   #5
jaitropfaim
LQ Newbie
 
Registered: Feb 2003
Location: somewhere on the blue ball
Distribution: SuSE, Red Hat, Debian, Gentoo
Posts: 13

Original Poster
Rep: Reputation: 0
thank you very much!
now, everything is woking...
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Red Hat custom Kernel compilation mini-How-To for Red Hat 8-9 Thetargos Red Hat 431 04-13-2007 05:19 AM
Upgrading Red Hat 9 to Red Hat Enterprise Server 3 AS louisb Linux - Software 7 02-23-2004 10:25 PM
Red Hat does not plan to release another product in the red hat linux line... Whitehat General 5 11-03-2003 06:33 PM
red hat 9.0.93. -beta red hat 10-xmms problem ronss Red Hat 1 09-08-2003 04:00 AM
Red Hat 7.2... & a modem with Red Hat 7.1 driver support rahduku Linux - Distributions 1 02-14-2002 11:49 AM


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