From c7a244429a1340a5c1a0b1c4de494c6f17a7a4d4 Mon Sep 17 00:00:00 2001 From: Tomas Plesnik <plesnik@ics.muni.cz> Date: Fri, 2 Nov 2012 11:27:59 +0100 Subject: [PATCH] upraveno pro warden-server-2.1; potreba pridat pripadny soubor UPDATE aby se zkopiroval do adresare doc --- src/warden-server/sh/install.sh | 49 ++++++++++++++++++++------------- 1 file changed, 30 insertions(+), 19 deletions(-) diff --git a/src/warden-server/sh/install.sh b/src/warden-server/sh/install.sh index 52d2170..69a3550 100755 --- a/src/warden-server/sh/install.sh +++ b/src/warden-server/sh/install.sh @@ -132,7 +132,7 @@ modules_chck() make_warden_dir() { - echo -n "Creating warden server directory ... " + echo -n "Creating Warden server directory ... " test -d $prefix || mkdir -p $prefix if cp -R ${dirname}/warden-server $prefix 2> $err; then echo "OK" @@ -140,7 +140,7 @@ make_warden_dir() err_clean fi - files=(CHANGELOG INSTALL LICENSE README) + files=(AUTHORS CHANGELOG INSTALL LICENSE README) for file in ${files[@]}; do cp ${dirname}/$file ${server_path}/doc @@ -195,44 +195,55 @@ make_server_conf() #------------------------------------------------------------------------------- # BASEDIR - base directory of Warden server #------------------------------------------------------------------------------- -\$BASEDIR = \"${server_path}\"; +\$BASEDIR = \'${server_path}\'; #------------------------------------------------------------------------------- -# FACILITY - syslog facility +# SYSLOG - enable/disable syslog logging #------------------------------------------------------------------------------- -\$FACILITY = \"local7\"; +\$SYSLOG = 1; #------------------------------------------------------------------------------- -# DB_NAME - database name of Warden server +# SYSLOG_VERBOSE - enable/disable logging in verbose mode (stack info added) #------------------------------------------------------------------------------- -\$DB_NAME = \"warden\"; +\$SYSLOG_VERBOSE = 1; #------------------------------------------------------------------------------- -# DB_USER - user of Warden server database +# SYSLOG_FACILITY - syslog facility #------------------------------------------------------------------------------- -\$DB_USER = \"username\"; +\$YSLOG_FACILITY = \'local7\'; #------------------------------------------------------------------------------- -# DB_PASS - password of Warden server database +# DB_NAME - MySQL database name of Warden server #------------------------------------------------------------------------------- -\$DB_PASS = \"\"; +\$DB_NAME = \'warden\'; #------------------------------------------------------------------------------- -# DB_HOST - what IP address to listen on of Warden server +# DB_USER - MySQL database user of Warden server #------------------------------------------------------------------------------- -\$DB_HOST = \"localhost\"; +\$DB_USER = \'username\'; #------------------------------------------------------------------------------- -# MAX_EVENTS_LIMIT - maximum number of events that can be downloaded from -# Warden server in a single getNewEvents client function call +# DB_PASS - MySQL database password of Warden server #------------------------------------------------------------------------------- -\$MAX_EVENTS_LIMIT = \"1000000\"; +\$DB_PASS = \'\'; + +#------------------------------------------------------------------------------- +# DB_HOST - MySQL database host +#------------------------------------------------------------------------------- +\$DB_HOST = \'localhost\'; + +#------------------------------------------------------------------------------- +# MAX_EVENTS_LIMIT - server limit of maximum number of events that can be +# delivered to one client in one batch +#------------------------------------------------------------------------------- +\$MAX_EVENTS_LIMIT = \'1000000\'; #------------------------------------------------------------------------------- # VALID_STRINGS - validation hash containing allowed event attributes #------------------------------------------------------------------------------- -%VALID_STRINGS = ( -\"type\" => [\"portscan\", \"bruteforce\", \"probe\", \"spam\", \"phishing\", \"botnet_c_c\", \"dos\", \"malware\", \"copyright\", \"webattack\", \"test\", \"other\", \"_any_\"], +\%VALID_STRINGS = ( + \'type\' => [\'portscan\', \'bruteforce\', \'probe\', \'spam\', \'phishing\', \'botnet_c_c\', \'dos\', \'malware\', \'copyright\', \'webattack\', \'test\', \'other\', \'_any_\'], + \'source_type' => ['IP', 'URL', 'Reply-To:'] ); " > $server_conf 2> $err; ret_val=`echo $?` @@ -288,7 +299,7 @@ create_symlinks() #------------------------------------------------------------------------------- # list of used Perl modules -modules=(SOAP::Lite SOAP::Transport::HTTP DBI DBD::mysql Format::Human::Bytes Sys::Syslog File::Basename Net::CIDR::Lite DateTime Getopt::Std Switch IO::Socket::SSL MIME::Base64 Crypt::X509) +modules=(SOAP::Lite SOAP::Transport::HTTP DBI DBD::mysql Format::Human::Bytes Sys::Syslog File::Basename Net::CIDR::Lite DateTime Getopt::Std Switch IO::Socket::SSL MIME::Base64 Crypt::X509 Carp) # read input while getopts "d:k:c:a:Vh" options; do -- GitLab