Skip to content

I just wanna try to create a GUI for PIVPN in way to make easy interact with the service and increase some features

License

Notifications You must be signed in to change notification settings

R0mb0/PIVPN_GUI

Urbino`s University - Computing and digital innovation - Programming of mobile devices and user interfaces

PIVPN GUI

Codacy Badge

Maintenance Open Source Love svg3 License: GPL v3

Donate

Description

PIVPN GUI is a flutter application to simplify the manage of PIVPN service for most of commons users. It provide the "time to be enabled" functionality, in way to automatic disable clients that had terminated their "enabled time". For example this functionality is usefull if the vpn is used to distribute a subscription service.

Until the application is open, one time a day, the application will check all user statuses, disabling the users with their "time to be enabled" over.

How to install

1. PIVPN installation






2. Flutter installation






3. Download the application

  • git clone https://github.com/R0mb0/PIVPN_GUI.git

How to run

  1. Enter into the working directory

    cd PIVPN_GUI/PIVPN_GUI/pivpn_gui/lib
  2. Make executable make_all_scripts_executable.sh script

    chmod +x make_all_scripts_executable.sh
  3. Run the script

    ./make_all_scripts_executable.sh
    
  4. Create the password.sh file

    • Create with your favorite editor password.sh

      nano password.sh
    • Add this code inside the file

      #!/bin/bash
      PASSWORD = "your_sudo_password"

      Save the file

      ctrl + o
      ctrl + x

  5. Run the application

    flutter run

Interface description



  • Name, Start Date, End Date are "Text Fields"
  • Is always allowed? is a "Check Box" (false as default)
  • ADD USER, REMOVE USER, ENABLE USER, DISABLE USER, SAVE DATABASE, LOAD DATABASE are "Buttons"
  • In the center, below the "Buttons" there's the section for the application's allerts
  • In the center of the page there's a table where check all clients and client statuses

How to use

Name field is used for all operations except for SAVE DATABASE and LOAD DATABASE
Start Date, End Date Is always allowed? Fields are used only for "add new user" operation

Add a new user

  • Complete Name, Start Date and End Date fields, and check if the user Is always allowed
  • Press ADD USER button

Remove an user

  • write the name of the user to remove in name field
  • Press REMOVE USER button

Enable an user

  • write the name of the user to enable in name field
  • Press ENABLE USER button

Disable an user

  • write the name of the user to disable in name field
  • Press DISABLE USER button

About

I just wanna try to create a GUI for PIVPN in way to make easy interact with the service and increase some features

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project