Equipos y materiales > Openwrt & LEDE
Bro-IDS 2.3 en OpenWRT
(1/1)
farconada:
Hola

¿alguno ha compilado Bro-IDS 2.3 en OpenWRT? he intentado compilarlo yo mismo (tengo poca experiencia con OpenWRT) pero al final termino en un error.
Me gustaría usar mi router OpenWRT para proveer algunos servicios de seguridad como bloquear intentos de ataques o intentar detectar cuando haya un equipo con un malware.

Este es mi error:

--- Código: ---Run Build Command:/usr/bin/make "cmTryCompileExec918641218/fast"
make[3]: Entering directory `/home/vagrant/openwrt/barrier-official/build_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/bro-2.3.1/CMakeFiles
/CMakeTmp'
/usr/bin/make -f CMakeFiles/cmTryCompileExec918641218.dir/build.make CMakeFiles/cmTryCompileExec918641218.dir/build
make[4]: Entering directory `/home/vagrant/openwrt/barrier-official/build_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/bro-2.3.1/CMakeFiles
/CMakeTmp'
/home/vagrant/openwrt/barrier-official/staging_dir/host/bin/cmake -E cmake_progress_report /home/vagrant/openwrt/barrier-official
/build_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/bro-2.3.1/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec918641218.dir/CheckFunctionExists.c.o
/usr/bin/ccache mips-openwrt-linux-uclibc-gcc  -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -mdsp -fno-caller-saves -fhonour-copts
-Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16   -Wall -Wno-unused
-DCHECK_FUNCTION_EXISTS=pthread_create   -o CMakeFiles/cmTryCompileExec918641218.dir/CheckFunctionExists.c.o   -c /home/vagrant
/openwrt/barrier-official/staging_dir/host/share/cmake-2.8/Modules/CheckFunctionExists.c
Linking C executable cmTryCompileExec918641218
/home/vagrant/openwrt/barrier-official/staging_dir/host/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec918641218.dir/link.txt
--verbose=1
/usr/bin/ccache mips-openwrt-linux-uclibc-gcc -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -mdsp -fno-caller-saves -fhonour-copts
-Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16   -Wall -Wno-unused
-DCHECK_FUNCTION_EXISTS=pthread_create   -L/home/vagrant/openwrt/barrier-official/staging_dir/target-mips_34kc+dsp_uClibc-0.9.33.2
/usr/lib -L/home/vagrant/openwrt/barrier-official/staging_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/lib -L/home/vagrant/openwrt/barrier-
official/staging_dir/toolchain-mips_34kc+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib -L/home/vagrant/openwrt/barrier-official/staging_dir
/toolchain-mips_34kc+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib  CMakeFiles/cmTryCompileExec918641218.dir/CheckFunctionExists.c.o  -o
cmTryCompileExec918641218 -rdynamic -lpthreads
/home/vagrant/openwrt/barrier-official/staging_dir/toolchain-mips_34kc+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib/gcc/mips-openwrt-linux-uclibc
/4.8.3/../../../../mips-openwrt-linux-uclibc/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
make[4]: Leaving directory `/home/vagrant/openwrt/barrier-official/build_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/bro-2.3.1/CMakeFiles
/CMakeTmp'
make[4]: *** [cmTryCompileExec918641218] Error 1
make[3]: Leaving directory `/home/vagrant/openwrt/barrier-official/build_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/bro-2.3.1/CMakeFiles
/CMakeTmp'
make[3]: *** [cmTryCompileExec918641218/fast] Error 2

--- Fin del código ---

Tki2000: Editado porque descuadraba el foro
Tki2000:
La mayoría de los paquetes de openwrt están parcheados para funcionar con las limitaciones de un dispositivo empotrado. Seguramente, la aplicación necesitará adaptarse al kernel y las bibliotecas de openwrt, antes de compilarse. La mayoría de aplicaciones no compilarán por las bravas para openwrt, a no ser que sean aplicaciones muy sencillas, y que no dependan de muchas bibliotecas, ni de funciones específicas del kernel.

Creo que aquí hay alguien que ya lo ha intentado y ha creado los parches para openwrt: http://inspirated.com/2012/12/10/bro-ids-on-openwrt

farconada:
Se me habia olvidado poner que ya habia visto ese post, de hecho he partido de esos patch. He contactado al autor a ver si me dice algo. Me parece muy interesante poder disponer de un IDS en nuestros dispositivos OpenWRT, creo que daría mucho juego siempre y cuando lo aguanten.
¿alguien se atreve a intentar compilarlo?
Navegación
Índice de Mensajes

Ir a la versión completa