Ubuntu 下安装 Bro

本文详细介绍了在Ubuntu系统中安装Bro网络安全分析系统的过程,包括Bro的运行依赖如Libpcap和OpenSSL,以及编译依赖如CMake和Python等。提供了一键安装依赖的步骤,并指导如何从源码编译和测试Bro的安装是否成功。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

简介

Bro is a powerful system that on top of the functionality it provides out of the box, also offers the flexibility to customize analysis pretty much arbitrarily. We provide a range of documentation material ranging from introductory material to get you started, to full references of Bro’s various frameworks.

Bro 的运行依赖 (required Dependencies)

如下所需库在 Ubuntu 14.04 中已经默认安装了,其他系统尚未亲自测试 
Bro requires the following libraries and tools to be installed before you begin: 
Libpcap 
OpenSSL libraries 
- BIND8 library 
- Libz 
- Bash (for BroControl) 
Python 2.6 or greater (for BroControl)

Libpcap

Libpcap 已经随 tcpdump 在 ubuntu 中 默认安装了,测试命令

$ tcpdump -h
   
   
  • 1
  • 1

Libpcap 源码

OpenSSL libraries

OpenSSL 在 ubuntu 中 默认安装了,测试命令 

$ openssl -version 

wireshark

Bro 的编译依赖

To build Bro from source, the following additional dependencies are required: 
- CMake 2.8 or greater (http://www.cmake.org
- Make 
- C/C++ compiler with C++11 support (GCC 4.8+ or Clang 3.3+) 
- SWIG (http://www.swig.org
- Bison (GNU Parser Generator) 
- Flex (Fast Lexical Analyzer) 
- Libpcap headers (http://www.tcpdump.org
- OpenSSL headers (http://www.openssl.org
- zlib headers 
- Python

CMake

$ cmake --version
cmake version 2.8.12.2
   
   
  • 1
  • 2
  • 1
  • 2

Make

$ make -v
GNU Make 3.81
...
   
   
  • 1
  • 2
  • 3
  • 1
  • 2
  • 3

gcc

$ gcc -v
...
gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3) 
   
   
  • 1
  • 2
  • 3
  • 1
  • 2
  • 3

SWIG

$ apt-get -y install swig
...
$ swig -version

SWIG Version 2.0.11
...
   
   
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6

Bison

$ apt-get -y install bison
...
$ bison -V
bison (GNU Bison) 3.0.2
...
   
   
  • 1
  • 2
  • 3
  • 4
  • 5
  • 1
  • 2
  • 3
  • 4
  • 5

Flex

$ apt-get install -y flex
...
$ flex -V
flex 2.5.35
   
   
  • 1
  • 2
  • 3
  • 4
  • 1
  • 2
  • 3
  • 4

一键安装所有依赖

apt-get -y install cmake make gcc g++ flex bison libpcap-dev libssl-dev python-dev swig zlib1g-dev
   
   
  • 1
  • 1

sudo sh -c “echo ‘deb http://download.opensuse.org/repositories/network:/bro/xUbuntu_14.04/ /’ >> /etc/apt/sources.list.d/bro.list”

源码编译 Bro

下载 Bro 源码

git clone --recursive git://git.bro.org/bro
   
   
  • 1
  • 1

编译 Bro 源码


   
   
  • 1
  • 1

测试安装成功

$ bro -v
bro version 2.5-106
   
   
  • 1
  • 2
  • 1
  • 2
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值