Giter Club home page Giter Club logo

lnmvpn's Introduction

该项目应用于企业远程维护、应用访问、安全连接、GFW路由跳转

1.支持Android、IOS、MAC、Windows、Linux各类客户端拨入

2.支持不用用户不同的访问策略[速度、路由、网络地址、DNS解析]

3.支持用户在线下载客户端资源及用户配置说明

4.支持通过VPN帐号路由共享过墙,供企业内部学术研究

5.支持策略多线路由及域名跟踪解析路由(IPROUTE+DNSMASQ+IPSET+IPTABLES)

6.支持PPP、DNS、DHCP、NAT、UTM防护等功能

安装步骤(仅针对centos/redhat发行版,其他版本自行测试)

  1. 安装lnmOS环境,从fxtxkktv.github.io获取简化安装Shell脚本
    curl -o - https://raw.githubusercontent.com/fxtxkktv/fxtxkktv.github.io/master/files/Install_LnmOS_env.sh | bash

  2. 获取程序代码
    git clone https://github.com/fxtxkktv/lnmVPN.git
    进入程序目录
    cd lnmVPN
    创建程序独立运行Python环境
    /opt/Py27lnmos/bin/virtualenv -p /opt/Py27lnmos/bin/python venv
    进入virtualenv环境
    source venv/bin/activate

  3. 安装程序运行模块
    安装lnmVPN相关服务组件
    yum install -y gnutls-utils ocserv openconnect iptables ipset dnsmasq iftop ppp rp-pppoe
    安装Python程序扩展包
    pip install -r readme/requirements.txt

  4. 创建数据库并恢复数据模版
    [启动数据库]: # service mysqld restart [创建数据库]: # mysql -u root -p -e "create database vpndb"
    [恢复数据模版]: # mysql -u root -p vpndb < readme/db_schema.sql
    [配置数据库连接及其他]: # vim config/config.ini

  5. 正式运行程序
    [程序调试]:python27 main.py
    [后台运行]: startweb.sh restart
    [前段访问]:https://IP地址:888[端口号] 用户名:admin 密码: admin
    [修改safekey]: 首次使用建议修改passkey,可通过API接口重置管理员密码[python tools/API.py API resetAdminPass newpass]

备注:程序启动将自动接管网络接口配置、DNS服务、DHCP服务等相关,建议关闭系统中涉及到的相关程序,以免相互冲突。

如有问题可直接反馈或邮件[email protected]

项目截图

系统管理

其余界面

网络配置

其余界面

DNS配置

其余界面

UTM防护

其余界面

VPN配置

其余界面

策略配置

其余界面

日志审计

其余界面

帮助文档

其余界面

支持捐赠

其余界面

lnmvpn's People

Contributors

fxtxkktv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

lnmvpn's Issues

error

Traceback (most recent call last):
File "src/gevent/greenlet.py", line 716, in gevent._greenlet.Greenlet.run
File "/lnmVPN/venv/lib/python2.7/site-packages/gevent/baseserver.py", line 26, in _handle_and_close_when_done
return handle(*args_tuple)
File "/lnmVPN/venv/lib/python2.7/site-packages/gevent/server.py", line 201, in wrap_socket_and_handle
with _closing_socket(self.wrap_socket(client_socket, **self.ssl_args)) as ssl_socket:
File "/lnmVPN/venv/lib/python2.7/site-packages/gevent/_sslgte279.py", line 695, in wrap_socket
ciphers=ciphers)
File "/lnmVPN/venv/lib/python2.7/site-packages/gevent/_sslgte279.py", line 270, in init
raise x
SSLError: [SSL: HTTP_REQUEST] http request (_ssl.c:618)
2019-10-23T00:31:33Z <Greenlet "Greenlet-0" at 0x7f575920d470: _handle_and_close_when_done(<bound method WSGIServer.wrap_socket_and_handle of, <bound method WSGIServer.do_close of <WSGIServer a, (<socket at 0x7f5758f8b8d0 fileno=[Errno 9] Bad fi)> failed with SSLError

启动报错有个目录找不到

[root@iZ0xi77vdiretar10niqptZ lnmVPN]# ./startweb.sh restart
./startweb.sh: line 11: /home/vpn/lnmVPN/venv/bin/activate: No such file or directory
[root@iZ0xi77vdiretar10niqptZ lnmVPN]#

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.