Hi all,
After install bro-ids in a FreeBSD and configure cfg files and scripts that I need to load, when I try to execute ‘broctl check’, this error appears:
error: can’t open base/init-bare.bro
Where is init-bare.bro?? There is not exists in my installation … but exists in other bro ids linux based sensor …
Yep, sorry, exists:
root@bsd01nm:/data/config/etc/bro/scripts/base# ls -la
/data/config/etc/bro/scripts/base/init-bare.bro
-rw-r--r-- 1 root wheel 98954 Aug 29 2012
/data/config/etc/bro/scripts/base/init-bare.bro
Maybe is a problem with my configure options: "./configure
--prefix=/opt/bro --enable-perftools --disable-ruby
--conf-files-dir=/data/config/etc/bro/conf
--scriptdir=/data/config/etc/bro/scripts"??
Ok, problem is solved doing the correct softlinks:
root@bsd01nm:/opt/bro/share/bro# ls -al
total 12
drwxr-xr-x 3 root wheel 512 Apr 17 13:19 .
drwxr-xr-x 4 root wheel 512 Apr 17 10:31 ..
lrwxr-xr-x 1 root wheel 44 Apr 17 13:19 base ->
../../../../data/config/etc/bro/scripts/base
drwxr-xr-x 2 root wheel 512 Apr 17 10:31 broctl
lrwxr-xr-x 1 root wheel 46 Apr 17 13:19 policy ->
../../../../data/config/etc/bro/scripts/policy
lrwxr-xr-x 1 root wheel 44 Apr 17 13:19 site ->
../../../../data/config/etc/bro/scripts/site
root@plzfnsm01:/opt/bro/share/bro#
but is this the correct solution??