Discussion Locked

Startup for firewall rules

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I'm currently running Red Hat 7.1 with iptables. I start my firewall rules by manually running a script (sh startup.sh). Is there an easier way to start these rules upon bootup?

5 replies

by lintadsl

use ntsysv command, it will show you what daemon will run at the bootup. Find iptable from the list and check the check box. It will work for you.

Another way is go to /etc/rc.d/rd?.d/ (? means whatever your run level is) and make simbolic linkof iptable from ../init.d/

Good luck,
Lintadsl

by srace

Ok, but I'm trying to figure out how to run my script that I made...

by randyarnold

An easy way to do this is put your script in /etc/rc.d/. and then at the end of /etc/rc.d/rc.local add your script. It will run on start-up as root.

Randy

This discussion is closed to new replies.