Linux Firewall: Simple Shell Script To Stop and Flush All Iptables Rules

in Categories Security last updated April 24, 2008

Share this on:

6 comment

  1. Silly question, but where should I save this script to in Debian? And how can I run it without having to mention ./location/location/script all the time?

    1. You can store it in your own ~/bin directory and add to the PATH in ~/.bash_profile:

  2. Hi Vivek,

    Could you please post a script on iptables rules for a webserver so that instead of APF or CSF you can just run this script daily or as per scheduled with a cron job.

    Thank you

    Have a question? Post it on our forum!