LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   slackware 10 startup script (https://www.linuxquestions.org/questions/linux-newbie-8/slackware-10-startup-script-262573/)

jonc 12-04-2004 02:32 PM

slackware 10 startup script
 
hey guys,

i was wondering how i could make my shell script containing iptables commands startup at boot. there are no rc1.d...rc5.d directories and i have tried putting the commands into rc.local but its not starting up for some reason.

could anyone help me with this, thanks.

trickykid 12-04-2004 02:37 PM

Actually Slackware usually has a rc.firewall script you can have rc.M call upon that I'm sure you place your iptables or firewall rules into. I'd suggest trying that first.

guzzi 12-04-2004 05:02 PM

slackware 10
 
Hello jonc

You will find that /etc/rc.d/rc/inet2 has some script in it that will start your iptables script, if you name the iptables script you created rc.firewall.

Also, you need to place your rc.firewall script in /etc/rc.d and make it executable.

Doing that will make your script start automatically at the right time of the boot process.

I don't know who created the default rc scripts, but they did a great job. (is it Patrick Volkerding?)

Good Luck


All times are GMT -5. The time now is 07:19 AM.