installation

FreeBSD

Verified on FreeBSD Release 11.1.


Build

This section explains how to build NextEPC from the source codes.

  • Install MongoDB

    MongoDB is used for the database of NextEPC. Please refer Manual for the installation:
sudo pkg install mongodb

mkdir -p data/db
mongod --dbpath data/db
  • Set loopback interfaces up

sudo ifconfig lo0 alias 127.0.0.2 netmask 255.255.255.255
sudo ifconfig lo0 alias 127.0.0.3 netmask 255.255.255.255
sudo ifconfig lo0 alias 127.0.0.4 netmask 255.255.255.255
sudo ifconfig lo0 alias 127.0.0.5 netmask 255.255.255.255
sudo sysctl -w net.inet.ip.forwarding=1
  • Define a TUN device

    Create tun0 and configure it:
sudo ifconfig tun create
...
  • Install dependencies

    Install the following dependencies:
sudo pkg install git gcc bison gsed pkgconf autoconf \
         automake libtool gnutls libgcrypt \
         libidn libyaml
  • Build

    Download and compile source codes, then will be installed to `pwd`/install/:
git clone https://github.com/nextepc/nextepc
cd nextepc
autoreconf -iv
./configure --prefix=`pwd`/install
make -j `nproc`
make install
  • Run

    nextepc-epcd is the daemon lauching all necessary daemons automatically:
nextepc-epcd
  • Install Node.js

    Node.js is required to install NextEPC WebUI:
sudo pkg install node
  • Install the dependencies of WebUI

    Goto the TOP/webui of NextEPC source. Install WebUI dependencies:
cd webui
npm install
npm run dev

Next step: Configuration