Discussion Locked
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
by srace
Perfect! Thank you!
by srace
This question was closed by the author
This discussion is closed to new replies.
Trending Linux posts
Sort by Trending
0 helpful
7 replies
0 helpful
6 replies
Question Locked
RE: How to fix the Docker and UFW security flaw
0 helpful
3 replies
Discussion Locked
Which Linux works best on old phone or tablet?
0 helpful
5 replies
Discussion Locked
My Job and Company
0 helpful
3 replies