GithubHelp home page GithubHelp logo

danielnoohi / ocserv-users-management Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mmtaee/ocserv-users-management

0.0 0.0 0.0 54.07 MB

ocserv installation with Docker and user web-panel management.

Shell 10.31% JavaScript 0.37% Python 32.61% Go 1.88% TypeScript 8.04% HTML 0.41% Vue 46.40%

ocserv-users-management's Introduction

ocserv-users-management

Web panel to manage ocserv and openconnect users

Requirements(Ubuntu 20.04 or Docker host)

features:

1- create an account with a limit of gigabytes or monthly usage

2- users: add, edit, update, remove, block and disconnect

3- group: add, edit, update and remove

4- occtl command tools

5- statistics

6- Calculation of users' rx and tx

Installation instructions

1- use install.sh script
    >>> chmod +x install.sh
    >>> ./install.sh

2- Installing panel without script
    >>> chmod +x ./configs/panel.sh
    >>> HOST=http://YOUR_DOMAIN_OR_IP ./configs/panel.sh

3- Docker host
  3-1: edit prod.env file

  3-2: run command
    >>> DOCKER_SCAN_SUGGEST=false docker-compose up -d --build --env-file "$(pwd)/prod.env"


4- frontend developing
    >>> docker compose -f docker-compose.dev.yml up --build

migrate accounts from old panel to new panel:


--free-traffic: migrate users with free usage traffic
--old-path: Path to the old SQLite database

in os
1- rename db.sqlite3 to db-old.sqlite3
    >>> mv db.sqlite3 db-old.sqlite3

2- run script
    >>> /var/www/site/back-end/venv/bin/python3 manage.py migrate_to_new --old-path /OLD_PATH/db-old.sqlite3


in docker host:
1- rename db.sqlite3 to db-old.sqlite3
    >>> mv db.sqlite3 db-old.sqlite3

2- copy db-old.sqlite3 to volumes/db

3- run command in docker container
    >>> python3 /app/manage.py migrate_to_new --old-path /app/db/db-old.sqlite3

ocserv-users-management's People

Contributors

mmtaee avatar dependabot[bot] 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.