UnixServerAdmin

Server Administration & Management

flush_csf.sh

#################################################
# Script for IP Block Remove Due to CSF Firewall
#################################################
# flush_csf.sh
#################################################
##### CSF – Flush All Block IP #####
#!/bin/bash
echo Flush All Block IP..
cd /etc/csf/
rm -rvf csf.deny
rm -rvf csf.tempban
touch csf.deny
touch csf.tempban
exit
#################################################

May 3, 2011 - Posted by | CSF, Firewall, Security, Shell Script | , ,

3 Comments »

  1. Many thanks for finding the time to line all of this out for us. This write-up ended up being incredibly useful to me.

    Comment by Christopher Nissen | June 15, 2011 | Reply

  2. Thank you for bothering to line this all out for us. This particular article was in fact really helpful if you ask me.

    Comment by Carter Stavish | June 15, 2011 | Reply

  3. Your insight really fills a need. I have been trying to find this sort of article and you truly came through. Can you imagine that that which you have written almost exactly replicates my own experience.

    Comment by blog about water | June 16, 2011 | Reply


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: