Revision [2029]

This is an old revision of AutoBlockPHPconf made by JeffTaylor on 2009-07-02 16:07:06.

 


Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/sourpuss.net/http/www/mirror/wiki.opennicproject.org/3rdparty/plugins/geshi/geshi.php on line 2148

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/sourpuss.net/http/www/mirror/wiki.opennicproject.org/3rdparty/plugins/geshi/geshi.php on line 2148

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/sourpuss.net/http/www/mirror/wiki.opennicproject.org/3rdparty/plugins/geshi/geshi.php on line 2148

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/sourpuss.net/http/www/mirror/wiki.opennicproject.org/3rdparty/plugins/geshi/geshi.php on line 2148

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/sourpuss.net/http/www/mirror/wiki.opennicproject.org/3rdparty/plugins/geshi/geshi.php on line 2148

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/sourpuss.net/http/www/mirror/wiki.opennicproject.org/3rdparty/plugins/geshi/geshi.php on line 2148

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/sourpuss.net/http/www/mirror/wiki.opennicproject.org/3rdparty/plugins/geshi/geshi.php on line 2148

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/sourpuss.net/http/www/mirror/wiki.opennicproject.org/3rdparty/plugins/geshi/geshi.php on line 2148

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/sourpuss.net/http/www/mirror/wiki.opennicproject.org/3rdparty/plugins/geshi/geshi.php on line 2148
<?
// Define which interface the IP addresses will be blocked from
$Interface = "eth0";

// Should UDP broadcasting be used?
$EnableBroadcasting = False;

// Define the port used for broadcast messaging
$Port = 801;

// Log file to monitor for events
$Filter = "/var/log/filter";

// Where should the blocklist be stored
$Blocklist = "/var/state/blocklist";

// Number of seconds between updating blocklist file
$BlockUpdates = "60";

// Settings for quick-block rules
$qbLines = 8;
$qbUniq = 5;

// Debug Level
//  0 - No messages
//  1 - General system messages
//  2 - Show Hits (blocked)
//  4 - Show Expires (blocked)
//  8 - Show Hits (not blocked)
// 16 - Show Expires (not blocked)
// 32 - Show IP's read from blocklist
// 64 - Show rules read from autoblock.rules
//128 - ALL system messages
$Debug = 7;

//------------------------------------//

$GREP = "/bin/grep";
$IPTABLES = "/usr/sbin/iptables";
$DIR = "/etc/autoblock";
$RULES = "$DIR/autoblock.rules";
$localIP=exec("ifconfig $Interface | grep \"inet addr:\" | cut -d: -f2 | cut -d\ -f1");

?>
There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki