Forward Proxy and SOCKS5 Make OpenVPN Great Again!

2026-04-13 13:170阅读0评论SEO问题
  • 内容介绍
  • 文章标签
  • 相关推荐
问题描述:
  • docker-compose.yml

services: openvpn: build: context: . dockerfile: Dockerfile # 容器名称 container_name: socks5-chain # 重启策略 restart: unless-stopped # 网络权限和设备 cap_add: - NET_ADMIN devices: - /dev/net/tun # 端口映射:宿主机 7080 -> 容器 1080 ports: - "7080:1080" # 文件挂载:将当前目录挂载到容器的 /sos volumes: - .:/sos # OpenVPN 的启动参数 command: [ "--data-ciphers", "AES-128-CBC:AES-256-GCM:AES-128-GCM:CHACHA20-POLY1305", "--config", "/sos/client.ovpn", "--auth-nocache", "--socks-proxy", "host.docker.internal", "10808", "--script-security", "2", "--up", "/sos/up.sh", "--down", "/sos/down.sh" ] # 对于 Linux 系统,如果 host.docker.internal 不可用,可以取消以下注释 # extra_hosts: # - "host.docker.internal:h

阅读全文
问题描述:
  • docker-compose.yml

services: openvpn: build: context: . dockerfile: Dockerfile # 容器名称 container_name: socks5-chain # 重启策略 restart: unless-stopped # 网络权限和设备 cap_add: - NET_ADMIN devices: - /dev/net/tun # 端口映射:宿主机 7080 -> 容器 1080 ports: - "7080:1080" # 文件挂载:将当前目录挂载到容器的 /sos volumes: - .:/sos # OpenVPN 的启动参数 command: [ "--data-ciphers", "AES-128-CBC:AES-256-GCM:AES-128-GCM:CHACHA20-POLY1305", "--config", "/sos/client.ovpn", "--auth-nocache", "--socks-proxy", "host.docker.internal", "10808", "--script-security", "2", "--up", "/sos/up.sh", "--down", "/sos/down.sh" ] # 对于 Linux 系统,如果 host.docker.internal 不可用,可以取消以下注释 # extra_hosts: # - "host.docker.internal:h

阅读全文