/fnm-fsgui

Primary LanguagePython

Flowspec-GUI: create Flowspec rules & deploy to FNM Adv.

Run it

Clone the git repository

git clone https://github.com/pirmins/fnm-fsgui.git

Create a Python virtual environment (developped with Python 3.11)

cd fsgui
python3 -m venv myenv

Activate the virtual environment

. myenv/bin/activate

Install the dependencies from requirements.txt

pip install -r requirements.txt

Define your own Fastnetmon API env. variables

export FNM_API_ENDPOINT="http://127.0.0.1:10007"
export FNM_API_USER=admin
export FNM_API_PASSWORD=password

Hardcoded defaults if no ENV VARs found are:

DEFAULT_API_ENDPOINT = "http://127.0.0.1:10007"
DEFAULT_API_USER = "fnmadmin"
DEFAULT_API_PASSWORD = "fnmpassword"

Create a Django superuser

python3 manage.py createsuperuser

Start the Django app with runserver

python3 manage.py runserver "0.0.0.0:8000"

GUI

Login page

image

Welcome page

image

Admin View

Admin Networks Panel (sees all networks allocated)

image

Admin Flowspec Panel (sees all flowspec rules created)

image

User View

User Networks page (sees only what networks he's been allocated)

image

User Flowspec panel (sees/can create flowspec rules for his allocated networks)

image