routing with Red Hat 8.0 ??
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
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.
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
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.
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.....
thank you very much! :)
now, everything is woking... :)
|All times are GMT -5. The time now is 08:55 PM.|