Solved

RH6.0 firewall problems...

Posted on 2000-02-28
2
294 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
2 Comments
 
LVL 1

Author Comment

by:940961sl
Comment Utility
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
Comment Utility
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

763 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now