Code Monkey home page Code Monkey logo

anylink's Introduction

AnyLink

AnyLink 是一个企业级远程办公sslvpn的软件,可以支持多人同时在线使用。

Introduction

AnyLink 基于 ietf-openconnect 协议开发,并且借鉴了 ocserv 的开发思路,使其可以同时兼容 AnyConnect 客户端。

Screenshot

online

Installation

升级 go version = 1.15

需要提前安装好 golang 和 nodejs

git clone https://github.com/go-kiss/anylink.git

cd anylink
make

# 注意使用root权限运行
sudo ./anylink -conf="conf/server.toml"

# 默认管理后台访问地址
# http://host:8800
# 默认账号密码
# admin 123456

Feature

  • IP分配(实现IP、MAC映射信息的持久化)
  • TLS-TCP通道
  • DTLS-UDP通道
  • 兼容AnyConnect
  • 用户组支持
  • 多用户支持
  • TOTP令牌支持
  • 流量控制
  • 后台管理界面
  • 访问权限管理

Config

默认配置文件内有详细的注释,根据注释填写配置即可。

# 生成后台密码
./anylink tool -p 123456

# 生成jwt密钥
./anylink tool -s

conf/server.toml

Systemd

添加 systemd脚本

  • anylink 程序目录放入 /usr/local/anylink-deploy

systemd 脚本放入:

  • centos: /usr/lib/systemd/system/
  • ubuntu: /lib/systemd/system/

操作命令:

  • 启动: systemctl start anylink
  • 停止: systemctl stop anylink
  • 开机自启: systemctl enable anylink

Docker

  1. 获取镜像

    docker pull go-kiss/anylink:latest
  2. 生成密码

    docker run -it --rm go-kiss/anylink tool -p 123456
    #Passwd:$2a$10$lCWTCcGmQdE/4Kb1wabbLelu4vY/cUwBwN64xIzvXcihFgRzUvH2a
  3. 生成jwt secret

    docker run -it --rm go-kiss/anylink tool -s
    #Secret:9qXoIhY01jqhWIeIluGliOS4O_rhcXGGGu422uRZ1JjZxIZmh17WwzW36woEbA
  4. 启动容器

    docker run -itd --name anylink --privileged \
    -p 443:443 -p 8800:8800 \
    --restart=always \
    go-kiss/anylink
  5. 使用自定义参数启动容器

    docker run -itd --name anylink --privileged \
    -e IPV4_CIDR=192.168.10.0/24 \
    -p 443:443 -p 8800:8800 \
    --restart=always \
    go-kiss/anylink \
    -c=/etc/server.toml --admin_addr=:8080
  6. 构建镜像

    #获取仓库源码
    git clone https://github.com/go-kiss/anylink.git
    # 构建镜像
    docker build -t anylink .

Setting

  1. 开启服务器转发
# flie: /etc/sysctl.conf
net.ipv4.ip_forward = 1

#执行如下命令
sysctl -w net.ipv4.ip_forward=1
  1. 设置nat转发规则
# eth0为服务器内网网卡
iptables -t nat -A POSTROUTING -s 192.168.10.0/24 -o eth0 -j MASQUERADE
  1. 使用AnyConnect客户端连接即可

Contribution

欢迎提交 PR、Issues,感谢为AnyLink做出贡献。

Other Screenshot

展开查看

system.jpg setting.jpg users.jpg ip_map.jpg group.jpg

anylink's People

Contributors

taoso avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

Forkers

izouxv a009 ur1m0ze

anylink's Issues

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.