Coder Social home page Coder Social logo

ocserv-compose's Introduction

ocserv-compose

ocserv daloRADIUS freeradius docker compose .anyconnect server

介绍

AnyConnect VPN 服务端ocserv ,freeradius ,daloradius,mysql 的docker-compose 整合.

Install

前提是已经安装Docker ,Docker-compose.并启动好docker.

  • 将当前 repo 下载到本地.
    cd ~;git clone https://github.com/youxixin888/ocserv-compose.git
  • (可选)按需要修改证书请求里边的服务器地址等信息
    cd ~/ocserv-compose/certs/
  • 构建镜像
    cd ~/ocserv-compose;docker build -t ocserv .
  • 生成证书和key
    docker run --rm -v ~/ocserv-compose/certs/:/opt/certs ocserv sh /opt/certs/gen.sh
  • (可选)按需修改ocserv/ocserv.conf 这里可以配置地址,下发路由,dns等信息
    cd ~/ocserv-compose/ocserv/;vi ocserv.conf
  • 启动服务(最后加-d参数可以后台运行)
    cd ~/ocserv-compose;docker-compose up -d
  • 查看状态
    docker-compose logs -f

使用

  • 访问管理后台添加用户
    http://yourserverip/daloradius 默认密码radius

  • 客户端测试连接

  • 按需配置iptables使用nat等

参考:

ocserv-compose's People

Contributors

youxixin888 avatar

Stargazers

 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.