【迁移】Docker部署easyconnect

Last updated on March 19, 2024 pm

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

1
2
3
4
mkdir -p ~/app/easyconnect && cd ~/app/easyconnect && nano docker-compose.yml
ping stuvpn.fudan.edu.cn # 202.120.224.58
sudo docker-compose up -d
sudo docker-compose logs
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

【迁移】Docker部署easyconnect
https://hexo.limour.top/-Docker-bu-shu-easyconnect
Author
Limour
Posted on
April 15, 2023
Updated on
March 19, 2024
Licensed under