General discussion

Locked

Startup for firewall rules

By srace ·
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?

This conversation is currently closed to new comments.

5 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Startup for firewall rules

by Lintadsl In reply to Startup for firewall rule ...

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

Collapse -

Startup for firewall rules

by srace In reply to Startup for firewall rule ...

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

Collapse -

Startup for firewall rules

by randyarnold In reply to Startup for firewall rule ...

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

Collapse -

Startup for firewall rules

by srace In reply to Startup for firewall rule ...

Perfect! Thank you!

Collapse -

Startup for firewall rules

by srace In reply to Startup for firewall rule ...

This question was closed by the author

Back to Linux Forum
5 total posts (Page 1 of 1)  

Related Forums