estos son los pasos que sigo para intentar descargar e instalar mod_evasive:
cd /usr/src
wget
http://www.zdziarski.com/blog/wp-con..._1.10.1.tar.gz
tar xzf mod_evasive_1.10.1.tar.gz
cd mod_evasive
apxs2 -cia mod_evasive20.c
estos son los errores que me da:
/usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -std=gnu99 -prefer-pic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -DLINUX -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/httpd -I/usr/include/apr-1 -I/usr/include/apr-1 -c -o mod_evasive20.lo mod_evasive20.c && touch mod_evasive20.slo
mod_evasive20.c: In function 'create_hit_list':
mod_evasive20.c:118:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
mod_evasive20.c: In function 'access_checker':
mod_evasive20.c:142:39: error: 'conn_rec' has no member named 'remote_ip'
if (is_whitelisted(r->connection->remote_ip))
^
mod_evasive20.c:146:43: error: 'conn_rec' has no member named 'remote_ip'
n = ntt_find(hit_list, r->connection->remote_ip);
^
mod_evasive20.c:158:56: error: 'conn_rec' has no member named 'remote_ip'
snprintf(hash_key, 2048, "%s_%s", r->connection->remote_ip, r->uri);
^
mod_evasive20.c:165:47: error: 'conn_rec' has no member named 'remote_ip'
ntt_insert(hit_list, r->connection->remote_ip, time(NULL));
^
mod_evasive20.c:180:58: error: 'conn_rec' has no member named 'remote_ip'
snprintf(hash_key, 2048, "%s_SITE", r->connection->remote_ip);
^
mod_evasive20.c:187:47: error: 'conn_rec' has no member named 'remote_ip'
ntt_insert(hit_list, r->connection->remote_ip, time(NULL));
^
mod_evasive20.c:208:117: error: 'conn_rec' has no member named 'remote_ip'
snprintf(filename, sizeof(filename), "%s/dos-%s", log_dir != NULL ? log_dir : DEFAULT_LOG_DIR, r->connection->remote_ip);
^
mod_evasive20.c:212:13: warning: implicit declaration of function 'getpid' [-Wimplicit-function-declaration]
fprintf(file, "%ld\n", getpid());
^
mod_evasive20.c:212:13: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'int' [-Wformat=]
mod_evasive20.c:215:90: error: 'conn_rec' has no member named 'remote_ip'
LOG(LOG_ALERT, "Blacklisting address %s: possible DoS attack.", r->connection->remote_ip);
^
mod_evasive20.c:46:82: note: in definition of macro 'LOG'
#define LOG( A, ... ) { openlog("mod_evasive", LOG_PID, LOG_DAEMON); syslog( A, __VA_ARGS__ ); closelog(); }
^
mod_evasive20.c:221:78: error: 'conn_rec' has no member named 'remote_ip'
fprintf(file, "Subject: HTTP BLACKLIST %s\n\n", r->connection->remote_ip);
^
mod_evasive20.c:222:81: error: 'conn_rec' has no member named 'remote_ip'
fprintf(file, "mod_evasive HTTP Blacklisted %s\n", r->connection->remote_ip);
^
mod_evasive20.c:228:81: error: 'conn_rec' has no member named 'remote_ip'
snprintf(filename, sizeof(filename), system_command, r->connection->remote_ip);
^
mod_evasive20.c: In function 'destroy_hit_list':
mod_evasive20.c:301:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
mod_evasive20.c: In function 'access_checker':
mod_evasive20.c:229:21: warning: ignoring return value of 'system', declared with attribute warn_unused_result [-Wunused-result]
system(filename);
^
apxs:Error: Command failed with rc=65536
necesito saber como instalarlo correctamente, gracias.