LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   scripts howto??? (https://www.linuxquestions.org/questions/linux-newbie-8/scripts-howto-84131/)

Kent Emia 08-21-2003 07:16 AM

scripts howto???
 
guyz, i've found this interesting but i don't know about script..
ok after downloading this text files ...whats next? where to put this simple firewall scripts???

# http://www.linuxguruz.com/iptables/s...c.firewall.txt

another one is to restart/flush the firewall.... whats next? how to use this and where to put?

# http://www.linuxguruz.com/iptables/s...h-iptables.txt

hope some inputs here... thanks

arobic 08-21-2003 08:09 AM

Hi Kent Ernia!

These are not really text files. These are scripts, i.e. executables. But, in order to allow them to execute, you have to change the permission of the file first!
Here's how it goes:
> chmod 751 rc.firewall
> chmod 751 rc.flush-iptables
BTW, I personnally suggest you to rename the files from *.txt to * , in order to keep track that they are not text files!

To use them, simply type:
> ./rc.firewall
> ./rc.flush-iptables
in the directory where the files are and it will execute.

For the question of where to put them, well, this I don't know. There must be some documentation on this website, but I am really not an expert in firewall!

Hope this helps!


All times are GMT -5. The time now is 02:39 PM.