How to write an IPtables script
Greetings,
I'm running Ubuntu 6.06LTS Server (command-line based, no GUI) and wish to configure IPtables. I have my script written and saved in a text file. At this point, I'm confused about several things. I've searched google and unfortunately have not found a clear explanation to my questions.
1.) How do I automatically execute the script at bootup?
--Do I need to change the file extension of the text file?
--Do I have to add "#!/bin/bash" to the top of the script?
--Where do I place the script, in the /etc/init.d directory?
--What permissions does the script need to run at bootup?
2.) Some IPtables scripts I've come across include the following:
modprobe ip_tables
modprobe ip_conntrack_ftp
My Ubuntu server is not providing FTP, just HTTP and SSH, so do I need to include these lines of code in my IPtables script?
Thank you for your time,
*Nick*
|