GithubHelp home page GithubHelp logo

3as's Introduction

3AS

Authentication, Authorization and Accounting for Smart Grids

This guide works on xUbuntu 18.04.

Pre-Install

sudo dpkg --remove whoopsie
apt install mininet freeradius python3-pip
pip3 install ryu
pip3 install vakt
sed -i '$ a export PATH=$PATH:~/.local/bin' ~/.bashrc
source ~/.bashrc

Configure

Download this repo and generate the certificates:

git clone https://github.com/arthurazs/3AS.git
cd 3AS/experiment/certificates/configs
make
cd ../../ieds/evs
sh gen_conf.sh

Head over to the file /etc/freeradius/3.0/mods-enabled/eap and update the following lines:

eap {
  default_eap_type = tls
  tls-config tls-common {
    home_certs = '/<WHEREVER THIS REPO IS>/3AS/experiment/certificates'
    private_key_password = icuff
    private_key_file = ${home_certs}/radius/server.key
    certificate_file = ${home_certs}/radius/server.pem
    ca_file = ${home_certs}/ca.pem
    # dh_file = ${certdir}/dh
  }
}

WARNING: Do not forget to change /<WHEREVER THIS REPO IS>/ to the full path you downloaded/cloned this repo, e.g., home_certs = '/home/arthurazs/git/3AS/experiment/certificates'.


Head over to the file /etc/freeradius/3.0/users and add the following line to the top of the file:

ied02 Cleartext-Password := "ied02"

Run

cd 3AS
sh run.sh

Dataset

The experiments' data can be found on Dropbox.

Download and unpack it into the 3AS/journal folder and rename it to dataset. Or:

apt install -y wget p7zip
cd journal
wget -O- https://www.dropbox.com/s/frajo1foprsbpfu/dataset-2021-03-28.tar.xz?dl=1 | 7z x -si -txz -so | 7z x -si -ttar

To plot the graphs, run:

apt install -y tshark python3-tk  python3-pip
pip3 install seaborn

cd journal
sh csv.sh

python3 control_load.py
python3 seq_of_events.py
python3 time_delay.py

3 PDF's will be generated, one for each graph.

3as's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

3as's Issues

clarification

Dear Arthur Zopellaro,

There is no a file called graph.py at the very last step of the implementation

Thank you.

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.