# Docker：部署easyconnect

深信服开发的非自由的 EasyConnect 代理软件就是依托答辩，想把它运行在 docker 中，并开放 Socks5 供宿主机连接以使用代理，保证不污染环境。使用的项目是Hagb/docker-easyconnect

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31

    version: '3'
    services:
      easyconnect:
        image: hagb/docker-easyconnect:cli
        restart: unless-stopped
        devices:
          - /dev/net/tun
        cap_add:
          - NET_ADMIN
        environment:
          - EC_VER=7.6.7
          - CLI_OPTS=-d 202.120.224.58:443 -u username -p password
          - TZ=Asia/Shanghai
        networks:
          - internal

      gost:
        restart: unless-stopped
        ports:
          - '13442:13443'
        image: ginuerzh/gost
        volumes:
          - ./ssl/fullchain.pem:/bin/cert.pem:ro
          - ./ssl/privkey.key:/bin/key.pem:ro
        command: -L="http+tls://limour:password@:13443?cert=cert.pem&key=key.pem&probe_resist=code:400&knock=www.library.fudan.edu.cn" -F="socks5://easyconnect:1080"
        networks:
          - internal

    networks:
      internal:
        attachable: true

- mkdir -p ~/app/easyconnect && cd ~/app/easyconnect && nano docker-compose.yml
- 证书来源：Docker：使用 Gost 搭建 HTTPS 代理
- ping stuvpn.fudan.edu.cn # 202.120.224.58
- sudo docker-compose up -d
- sudo docker-compose logs

## 更新版本

- sudo docker-compose pull && sudo docker-compose up -d –remove-orphans
- sudo docker image prune

运维
Docker：部署easyconnect
https://occdn.limour.top/2692.html
Author
Limour
Posted on
April 15, 2023
Licensed under
SOCKS5转TUN Previous
群星控制台召唤灰风老婆 Next

#### Search

Keyword