Solved

RH6.0 firewall problems...

Posted on 2000-02-28
2
300 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

The purpose of this article is to demonstrate how we can use conditional statements using Python.
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

690 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