Solved

RH6.0 firewall problems...

Posted on 2000-02-28
2
298 Views
Last Modified: 2013-12-15
Of course I didn't install two network cards just for fun... (see my previous question.). I wanted to install ip-masqerating and a firewall. Now, the ip-masq works fine, i followed the mini-howto on ip-masqerating. except for one thing : the doc says to put all the commands in 1 file called /etc/rc.d/rc.firewall. and make the file excecutable with chmod 700. Done that, and it works fine, but why is this file not automaticaly excecuted at startup time, like the doc says???

BTW : I can excecute the file, all i have to do is log in and type /etc/rc.d/rc.firewall and everything works fine, but I don't want to type the command every reboot...

(I think this should be an easy one)
0
Comment
Question by:940961sl
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Author Comment

by:940961sl
ID: 2564110
Sorry, I forgot,
Comments only, please. Answers will be rejected, and rejected answers don't have a accept comment as answer button :-)
0
 
LVL 2

Accepted Solution

by:
nirsim earned 50 total points
ID: 2564162
Hi There,

  Here is a simple solution to your problem:

1. copy the file to /etc/rc.d/init.d/firewall
2. mark it as an executable file
3. goto /etc/rc.d/rc3.d/
4. create a symbolic link from S86firewall to /etc/rc.d/init.d/firewall.rc
5. if you are using X-windows as your default runlever, do the same
    only in /etc/rc.d/rc5.d/

  This should run your firewall settings at startup. Please note, the rc.firewall file you created should have been run automaticly from the rc.local script. If it doesn't, that means that some of the lines in rc.local are commented out, which makes it impossible to run other rc.* scripts at run time.

Best regards,
  Nir Simionovich
  artNET experts Ltd.
  Israel
  http://www.artnet.co.il
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
unable to put logic for reading multiple repo in a single file 4 67
Recover Lacie Edmini data. 11 63
Ubuntu don’t allow SU command in terminal 7 60
Linux 3 33
This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question