Berzerk

Overview

February 26, 2011
Current version: berzerk-0.11

Intro
Overview
Download

Gitweb
Gitstats

Berzerk is a daemon that provides active monitoring of a network.

Given a list of log files and regular expressions, Berzerk generates events when a match is triggered.

Typically, this event is either
  • Generate another log event

    This is useful for a server to notify the firewall via syslog that evil activity occured.

  • use iptables to ban this ip.

    The firewall directly manipulates iptables based on Berzerk's rules.


Berzerk gets its configuration from (/usr/local)/etc/berzerk/berzerk.bzf
	threshold = 10				# 10 points to trigger a fail
	whitelist = 10\.10\.30\..*		# Don't check internal IPs
	whitelist = 192\.168\.1\..*		# Don't check internal IPs
	
	# Define a trap that adds an ip to the banned table
	trap = [arschloch] $iptables -A arschloch -p ALL -s $ip -j DROP
	#trap = [logkill] $logger ... built-in trap 
	
	include = xmlrpc.bzf			# Include the rest of the rules
This is what the server ruleset looks like:
	[xmlrpc]				# Define a rule named xmlrpc
	weight = 5				# 5 points for matching this rule
	trap = logkill				# When the rule trips, execute this trap
	log = /var/log/web/access_log.outside	# Monitor this file
	ip = ([[:digit:]|[:punct:]]*)		# How to extract the ip from the log line. 
	filter = xmlrpc				# filter to match (look for any "xmlrpc" in the line) 
	filter = /AZenv				# another filter to match (look for "/AZenv" in the line)
	
	[phpMyAdmin]
	weight = 5
	trap = logkill
	log = /var/log/web/access_log.outside
	ip = ([[:digit:]|[:punct:]]*)
	filter = GET\ \/phpMyAdmin
	filter = phpmyadmin

Steel Skivvies
Berzerk
BuckoSoft, Corp. Home Page
Home
Dick Balaska's Home Page
Dick
Send mail to BuckoSoft
Mail
Places that i find useful
Links
BuckoSoft news
News

Where things are
SiteMap
Help and Preferences
Prefs
The Main BuckoSoft Pinball Page
Pinball
XPilot is a cool network based game
XPilot
BuckoSoft Art Gallery; raytraced pictures, etc.
Art
This page created February 26, 2011. Last touched Sunday November 06, 2016 23:59 EST