Giter VIP home page Giter VIP logo

openvpn-webui-docker's Introduction

openvpn-webui

openvpn网页管理界面 出于安全建议不要将管理服务开放到互联网

实现功能

image

用户管理

  • 创建
  • 删除
  • 禁用
  • 强制用户下线 image

流量监控

  • 统计在线用户上下行流量 image

日志管理

  • 通过指定日期区域查询用户上下线日志 image

安装步骤

1、下载源代码

git pull https://github.com/taoshanghu/openvpn-webui.git

2、切换到项目目录

cd openvpn-webui

3、数据库配置

  • 数据库支持
    • mysql
    • martadb
    • sqlite

默认使用sqlite

配置文件Fopenvpn-webui/settings.py

    db_type = "sqlite"
    if db_type == 'mysql' or db_type == 'mariadb':
        DATABASES = {
            'default': {
                'ENGINE': 'django.db.backends.mysql',
                'NAME': "",
                'USER': "",
                'PASSWORD': "",
                'HOST': "",
                'PORT': 3306,
            }
        }
    else:
        DATABASES = {
            'default': {
                'ENGINE': 'django.db.backends.sqlite3',
                'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
            }
        }

3、执行安装脚本

./install.sh

4、使用浏览器访问目标主机http://ip

要更新配置请修改/etc/nginx/conf.d/openvpn-webui.conf

openvpn-webui-docker's People

Contributors

taoshanghu 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.