Skip to content

arthurazs/3AS

Repository files navigation

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.

About

3AS: Authentication, Authorization and Accounting for Smart Grids

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published