Mod_Evasive error

  • Thread starter Thread starter Hawkiiii
  • Start date Start date
H

Hawkiiii

Guest
Also folgende Daten Apache 2 Os: Suse 10.0
Code:
g057:/mod_evasive # apxs2 -cia mod_security20.c
/usr/share/apache2/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -fPIC -Wall -fno-strict-aliasing -D_LARGEFILE_SOURCE -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DAP_DEBUG -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -pthread -I/usr/include/apache2  -I/usr/include/apache2   -I/usr/include/apache2   -c -o mod_security20.lo mod_security20.c && touch mod_security20.slo
gcc: mod_security20.c: No such file or directory
gcc: no input files
apxs:Error: Command failed with rc=65536
Ich weiß nicht warum der sagt no such file or directory nach einleitung bräuchte ich garkeins herstellen....

thx schon ma für die Hilfe;)
 
Last edited by a moderator:
Du möchtest mal eben bitte in dem Verzeichnis mod_evasive uns die Ausagbe von
Code:
ls -la
posten, oder?
 
Thx hier die Ausgabe:

g057:/mod_evasive # ls -la
insgesamt 124
Code:
drwxr-xr-x   3 root root  4096 2007-03-29 19:58 .
drwxr-xr-x  23 root root  4096 2007-03-29 13:08 ..
-rw-r--r--   1 root root  1373 2007-03-29 13:08 CHANGELOG
-rw-r--r--   1 root root    26 2007-03-29 13:08 .cvsignore
drwxr-xr-x   2 root root  4096 2007-03-29 19:58 .libs
-rw-r--r--   1 root root 18103 2007-03-29 13:08 LICENSE
-rw-r--r--   1 root root   470 2007-03-29 13:08 Makefile.tmpl
-rw-r--r--   1 root root 18242 2007-03-29 13:08 mod_evasive20.c
-rw-r--r--   1 root root 19395 2007-03-29 13:08 mod_evasive.c
-rw-r--r--   1 root root 15621 2007-03-29 13:08 mod_evasiveNSAPI.c
-rw-r--r--   1 root root   231 2007-03-29 19:58 mod_security20.loT
-rw-r--r--   1 root root 14269 2007-03-29 13:08 README
-rw-r--r--   1 root root   406 2007-03-29 13:08 test.pl
 
Last edited by a moderator:
Ich hab mir Dein erstes Posting noch mal geschwind durchgelesen... Dir fällt schon auf, dass Du mod_security20.c eingegeben hast und nicht mod_evasive20.c oder?

Jetzt darf jemand anders übernehmen, ich geh nämlich feiern :)

Cheers!
 
Also hab das jetzt in dem richtigen ordner gemacht:
Code:
g057:/modsecurity-apache/apache2 # apxs2 -cia mod_security.c
/usr/share/apache2/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -fPIC -Wall -fno-strict-aliasing -D_LARGEFILE_SOURCE -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DAP_DEBUG -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -pthread -I/usr/include/apache2  -I/usr/include/apache2   -I/usr/include/apache2   -c -o mod_security.lo mod_security.c && touch mod_security.slo
gcc: mod_security.c: No such file or directory
gcc: no input files
apxs:Error: Command failed with rc=65536


das sind die files in dem ordner:
Code:
g057:/modsecurity-apache/apache2 # dir
insgesamt 676
drwxr-xr-x  4 root root  4096 2007-03-29 12:19 .
drwxr-xr-x  5 root root  4096 2007-03-29 10:30 ..
-rw-r--r--  1 root root 43420 2007-03-29 10:30 apache2_config.c
-rw-r--r--  1 root root  2132 2007-03-29 10:30 apache2.h
-rw-r--r--  1 root root 20525 2007-03-29 10:30 apache2_io.c
-rw-r--r--  1 root root  9589 2007-03-29 10:30 apache2_util.c
drwxr-xr-x  2 root root  4096 2007-03-29 10:30 api
-rw-r--r--  1 root root     0 2007-03-29 10:30 .deps
drwxr-xr-x  2 root root  4096 2007-03-29 12:19 .libs
-rw-r--r--  1 root root 17989 2007-03-29 10:30 LICENSE
-rw-r--r--  1 root root  1170 2007-03-29 10:30 Makefile
-rw-r--r--  1 root root  1337 2007-03-29 10:30 Makefile.win
-rw-r--r--  1 root root 32561 2007-03-29 10:30 mod_security2.c
-rw-r--r--  1 root root   330 2007-03-29 12:19 mod_security2.lo
-rw-r--r--  1 root root 52924 2007-03-29 12:19 mod_security2.o
-rw-r--r--  1 root root     0 2007-03-29 12:19 mod_security2.slo
-rw-r--r--  1 root root 13729 2007-03-29 10:30 modsecurity.c
-rw-r--r--  1 root root 14615 2007-03-29 10:30 modsecurity.h
-rw-r--r--  1 root root   229 2007-03-29 12:19 mod_security.loT
-rw-r--r--  1 root root   631 2007-03-29 10:30 modules.mk
-rw-r--r--  1 root root 34415 2007-03-29 10:30 msc_logging.c
-rw-r--r--  1 root root  1628 2007-03-29 10:30 msc_logging.h
-rw-r--r--  1 root root 30195 2007-03-29 10:30 msc_multipart.c
-rw-r--r--  1 root root  3514 2007-03-29 10:30 msc_multipart.h
-rw-r--r--  1 root root  9566 2007-03-29 10:30 msc_parsers.c
-rw-r--r--  1 root root   919 2007-03-29 10:30 msc_parsers.h
-rw-r--r--  1 root root  2974 2007-03-29 10:30 msc_pcre.c
-rw-r--r--  1 root root  1159 2007-03-29 10:30 msc_pcre.h
-rw-r--r--  1 root root 22645 2007-03-29 10:30 msc_reqbody.c
-rw-r--r--  1 root root 26242 2007-03-29 10:30 msc_util.c
-rw-r--r--  1 root root  2565 2007-03-29 10:30 msc_util.h
-rw-r--r--  1 root root  4041 2007-03-29 10:30 msc_xml.c
-rw-r--r--  1 root root  1131 2007-03-29 10:30 msc_xml.h
-rw-r--r--  1 root root 17905 2007-03-29 10:30 persist_dbm.c
-rw-r--r--  1 root root   863 2007-03-29 10:30 persist_dbm.h
-rw-r--r--  1 root root 53076 2007-03-29 10:30 re_actions.c
-rw-r--r--  1 root root 47720 2007-03-29 10:30 re.c
-rw-r--r--  1 root root 10202 2007-03-29 10:30 re.h
-rw-r--r--  1 root root 28480 2007-03-29 10:30 re_operators.c
-rw-r--r--  1 root root 11968 2007-03-29 10:30 re_tfns.c
-rw-r--r--  1 root root 68577 2007-03-29 10:30 re_variables.c

dann hab ich nocheinmal die datei hier ausgeführt "mod_security2.c" dabei kam das hier rum:
Code:
g057:/modsecurity-apache/apache2 # apxs2 -cia mod_security2.c
/usr/share/apache2/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -fPIC -Wall -fno-strict-aliasing -D_LARGEFILE_SOURCE -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DAP_DEBUG -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -pthread -I/usr/include/apache2  -I/usr/include/apache2   -I/usr/include/apache2   -c -o mod_security2.lo mod_security2.c && touch mod_security2.slo
/usr/share/apache2/build/libtool --silent --mode=link gcc -o mod_security2.la  -rpath /usr/lib/apache2 -module -avoid-version    mod_security2.lo
.libs/mod_security2.o: In function `perform_interception':
/modsecurity-apache/apache2/mod_security2.c:199: undefined reference to `msc_alert'
/modsecurity-apache/apache2/mod_security2.c:84: undefined reference to `msr_log'
/modsecurity-apache/apache2/mod_security2.c:179: undefined reference to `log_escape_nq'
/modsecurity-apache/apache2/mod_security2.c:119: undefined reference to `log_escape_nq'
/modsecurity-apache/apache2/mod_security2.c:68: undefined reference to `msr_log'
/modsecurity-apache/apache2/mod_security2.c:63: undefined reference to `msr_log'
/modsecurity-apache/apache2/mod_security2.c:111: undefined reference to `log_escape_nq'
.libs/mod_security2.o: In function `module_cleanup':
/modsecurity-apache/apache2/mod_security2.c:372: undefined reference to `modsecurity_shutdown'
.libs/mod_security2.o: In function `hook_pre_config':
/modsecurity-apache/apache2/mod_security2.c:381: undefined reference to `modsecurity_create'
.libs/mod_security2.o: In function `hook_post_config':
/modsecurity-apache/apache2/mod_security2.c:407: undefined reference to `modsecurity_init'
.libs/mod_security2.o: In function `hook_child_init':
/modsecurity-apache/apache2/mod_security2.c:489: undefined reference to `modsecurity_child_init'
.libs/mod_security2.o: In function `hook_request_late':
/modsecurity-apache/apache2/mod_security2.c:573: undefined reference to `create_directory_config'
/modsecurity-apache/apache2/mod_security2.c:581: undefined reference to `merge_directory_configs'
/modsecurity-apache/apache2/mod_security2.c:583: undefined reference to `init_directory_config'
/modsecurity-apache/apache2/mod_security2.c:604: undefined reference to `read_request_body'
/modsecurity-apache/apache2/mod_security2.c:636: undefined reference to `record_time_checkpoint'
/modsecurity-apache/apache2/mod_security2.c:639: undefined reference to `modsecurity_process_phase'
/modsecurity-apache/apache2/mod_security2.c:643: undefined reference to `record_time_checkpoint'
/modsecurity-apache/apache2/mod_security2.c:593: undefined reference to `msr_log'
/modsecurity-apache/apache2/mod_security2.c:608: undefined reference to `msr_log'
/modsecurity-apache/apache2/mod_security2.c:587: undefined reference to `msr_log'
/modsecurity-apache/apache2/mod_security2.c:576: undefined reference to `merge_directory_configs'
.libs/mod_security2.o: In function `hook_log_transaction':
/modsecurity-apache/apache2/mod_security2.c:806: undefined reference to `get_response_protocol'
.libs/mod_security2.o: In function `sec_guardian_logger':
/modsecurity-apache/apache2/mod_security2.c:724: undefined reference to `log_escape'
/modsecurity-apache/apache2/mod_security2.c:749: undefined reference to `construct_log_vcombinedus_limited'
.libs/mod_security2.o: In function `hook_log_transaction':
/modsecurity-apache/apache2/mod_security2.c:818: undefined reference to `modsecurity_process_phase'
/modsecurity-apache/apache2/mod_security2.c:777: undefined reference to `msr_log'
/modsecurity-apache/apache2/mod_security2.c:818: undefined reference to `modsecurity_process_phase'
/modsecurity-apache/apache2/mod_security2.c:745: undefined reference to `msr_log'
.libs/mod_security2.o: In function `hook_insert_filter':
/modsecurity-apache/apache2/mod_security2.c:839: undefined reference to `msr_log'
/modsecurity-apache/apache2/mod_security2.c:857: undefined reference to `msr_log'
/modsecurity-apache/apache2/mod_security2.c:846: undefined reference to `msr_log'
.libs/mod_security2.o: In function `modsec_register_tfn':
/modsecurity-apache/apache2/mod_security2.c:908: undefined reference to `msre_engine_tfn_register'
.libs/mod_security2.o: In function `register_hooks':
/modsecurity-apache/apache2/mod_security2.c:973: undefined reference to `input_filter'
/modsecurity-apache/apache2/mod_security2.c:975: undefined reference to `output_filter'
.libs/mod_security2.o: In function `create_tx_context':
/modsecurity-apache/apache2/mod_security2.c:277: undefined reference to `create_directory_config'
/modsecurity-apache/apache2/mod_security2.c:284: undefined reference to `create_directory_config'
/modsecurity-apache/apache2/mod_security2.c:291: undefined reference to `init_directory_config'
/modsecurity-apache/apache2/mod_security2.c:293: undefined reference to `get_env_var'
/modsecurity-apache/apache2/mod_security2.c:301: undefined reference to `msr_log'
/modsecurity-apache/apache2/mod_security2.c:324: undefined reference to `modsecurity_tx_init'
/modsecurity-apache/apache2/mod_security2.c:329: undefined reference to `msr_log'
.libs/mod_security2.o: In function `hook_request_early':
/modsecurity-apache/apache2/mod_security2.c:523: undefined reference to `msr_log'
/modsecurity-apache/apache2/mod_security2.c:288: undefined reference to `merge_directory_configs'
/modsecurity-apache/apache2/mod_security2.c:530: undefined reference to `modsecurity_process_phase'
/modsecurity-apache/apache2/mod_security2.c:516: undefined reference to `msr_log'
.libs/mod_security2.o:(.data.rel+0x20): undefined reference to `create_directory_config'
.libs/mod_security2.o:(.data.rel+0x24): undefined reference to `merge_directory_configs'
.libs/mod_security2.o:(.data.rel+0x30): undefined reference to `module_directives'
/usr/lib/gcc/i586-suse-linux/4.0.2/../../../../i586-suse-linux/bin/ld: .libs/mod_security2.so: hidden symbol `modsecurity_tx_init' isn't defined
/usr/lib/gcc/i586-suse-linux/4.0.2/../../../../i586-suse-linux/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
apxs:Error: Command failed with rc=65536

Hab das nach der Anleitung hier gemacht:
Server-Wissen.de :: Linux - mod_security Sicherheitsmodul in Apache2


thx
 
Last edited by a moderator:
welche Version haste denn genommen? Die 2.x oder die 1.9x? Die Anleitung ist nur für die 1.9x
 
also ich hab die version genommen die bei der Anleitung zum doenload stand
 
Dann wird es wohl die 2er gewesen sein die du hast, damit geht die Anleitung nicht. Zieh dir mal die 1.9.4 unter Downloads auf der modsecurity-Seite und versuche das Howto nochmal!
 
Mal ein ganz heißer Tipp: Wenn die Source-Datei mod_security2.c heisst... was könnten wir daraus schließen? Richtig, Version 2.x. Nicht immer blind irgendwelche Howtos befolgen und danach wundern, das rm -rf / nicht den Server neu startet.

Ich habe einen Alternativvorschlag: Du suchst ein HowTo, welches die Installation von mod_security 2.x beschreibt!
 
Hallo!
find keins :-(
Augen aufmachen:
:)

mfG
Thorsten
 
so habe jetzt den 1.9x installiert...
wie kann ich den testen das er läuft die Installation lief einwandfrei.
 
und was sollte dann da kommen? Also bei mir wird ganz normal die seite aufgerufen.
 
Ich habe den apache neugestartet also denke ich das es geladen ist
 
Back
Top