Install SF-TAP Flow Abstractor on Ubuntu Linux
Ubuntu Version
This document is for Ubuntu 14.10, 15.04, 15.10, 16.04, and 16.10.
Install Dependencies
First of all, install build-essential, cmake, git, libevent-dev, libboost-all-dev, libpcap-dev, libre2-dev, libyaml-cpp-dev.
$ sudo apt-get install build-essential cmake git libevent-dev \
libboost-all-dev libpcap-dev libre2-dev libyaml-cpp-dev
Build and Run SF-TAP Flow Abstractor
Get Source
Then, clone the source of SF-TAP flow abstractor from GitHub.
$ git clone https://github.com/SF-TAP/flow-abstractor.git
Environment Variables
Before compiling, set environment variables for cmake as follows.
$ export CMAKE_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib
$ export CMAKE_INCLUDE_PATH=/usr/include:/usr/local/include
Build
Build by cmake and make.
$ cd flow-abstractor
$ cmake -DCMAKE_BUILD_TYPE=Release CMakeLists.txt
$ make
If you get an eorror regarding language locale, install suitable launguage pack.
$ sudo apt-get install language-pack-ja
Use netmap
If you want to use netmap, set an option of USE_NETMAP=1 to cmake.
$ cmake -DUSE_NETMAP=1 CMakeLists.txt
$ make
, and pass -n option when executing as follows.
$ ./src/sftap_fabs -i eth0 -c ./examples/fabs.yaml -n
Run
Run SF-TAP flow abstractor specifying a network interface and a config file.
$ sudo ./src/sftap_fabs -i eth0 -c ./examples/fabs.yaml