Giter VIP home page Giter VIP logo

birdspy's Introduction

BirdSpy – Web Application for Querying BIRD Servers

Security

It's not recommended to run this application with public access. Ideally, run it on private network.

Installation

This is a basic Symfony PHP application and the requirements are:

  • PHP >= 7.3
  • BCMath PHP Extension
  • Ctype PHP Extension
  • Iconv PHP Extension
  • JSON PHP Extension
  • Mbstring PHP Extension
  • Redis + PHP Extension

For Apache or Nginx, setup a virtual host to point to the public/ directory of the project.

Make sure that var/ directory is writable by www-data user or the appropriate web server user.

Create .env.local with custom variables (how to and which is described in .env).

Configuration files are in config/packages/ directory (a specially: app.yaml, bird.yaml, cache.yaml). They could be rewritten with environment equivalents in dev/, prod/, test/ subdirectories.

You need to give the www-data user permission to run the birdc script. Add to /etc/sudoers:

www-data        ALL=(ALL)       NOPASSWD: /project_path/bin/birdc

The best way to install dependencies is using Composer and Yarn from project_path:

$ composer install
$ yarn install

And then build assets:

$ yarn build

Commands

For Commands List run from project_path:

$ php bin/console

Import invalid routes for all servers:

$ php bin/console app:import-invalid-routes

Or specifically for one server:

$ php bin/console app:import-server-invalid-routes nix-rs-1

Import filtered routes for all servers:

$ php bin/console app:import-filtered-routes

Or specifically for one server:

$ php bin/console app:import-server-filtered-routes nix-rs-1

CRON

For automation commands use:

$ crontab -u www-data -e

And add similar:

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=""

# NIX/BirdSpy Invalid Routes
*/5 * * * * /usr/bin/php /project_path/bin/console app:import-server-invalid-routes nix-rs-1 -q

# NIX/BirdSpy Filtered Routes
*/7 * * * * /usr/bin/php /project_path/bin/console app:import-server-filtered-routes nix-rs-1 -q

BIRD Configuration

It's recommended, but not necessary to change time format to match BirdSpy looking glass:

timeformat base         iso long;
timeformat log          iso long;
timeformat protocol     iso long;
timeformat route        iso long;

License

This application is open-sourced software licensed under the MIT license – see the license file.

birdspy's People

Contributors

dependabot[bot] avatar nixcz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.