Solved

RH6.0 firewall problems...

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
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.

770 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