arch-delugevpn

arch-delugevpn

集成VPN的Deluge BitTorrent客户端Docker容器

该Docker容器集成了Deluge BitTorrent客户端、OpenVPN和WireGuard VPN服务。它基于Arch Linux构建,使用iptables确保安全下载。容器还包含Privoxy和microsocks代理服务,支持多种VPN提供商,并提供灵活的网络设置。预装最新稳定版组件,附带详细使用指南,适合需要安全匿名下载的用户。

DockerVPNDelugeBitTorrent网络安全Github开源项目

Application

<!-- markdownlint-disable MD033 -->

Deluge<br/> Privoxy<br/> microsocks<br/> OpenVPN<br/> WireGuard

Description

Deluge is a full-featured ​BitTorrent client for Linux, OS X, Unix and Windows. It uses ​libtorrent in its backend and features multiple user-interfaces including: GTK+, web and console. It has been designed using the client server model with a daemon process that handles all the bittorrent activity. The Deluge daemon is able to run on headless machines with the user-interfaces being able to connect remotely from any platform.<br/>

This Docker includes OpenVPN and WireGuard to ensure a secure and private connection to the Internet, including use of iptables to prevent IP leakage when the tunnel is down. It also includes Privoxy to allow unfiltered access to index sites, to use Privoxy please point your application at http://<host ip>:8118.

Build notes

Latest stable Deluge release from Arch Linux repo.<br/> Latest stable Privoxy release from Arch Linux repo.<br/> Latest stable microsocks release from GitHub.<br/> Latest stable OpenVPN release from Arch Linux repo.<br/> Latest stable WireGuard release from Arch Linux repo.

Usage

docker run -d \ --cap-add=NET_ADMIN \ -p 8112:8112 \ -p 8118:8118 \ -p 9118:9118 \ -p 58846:58846 \ -p 58946:58946 \ -p 58946:58946/udp \ --name=<container name> \ -v <path for data files>:/data \ -v <path for config files>:/config \ -v /etc/localtime:/etc/localtime:ro \ -e VPN_ENABLED=<yes|no> \ -e VPN_USER=<vpn username> \ -e VPN_PASS=<vpn password> \ -e VPN_PROV=<pia|airvpn|protonvpn|custom> \ -e VPN_CLIENT=<openvpn|wireguard> \ -e VPN_OPTIONS=<additional openvpn cli options> \ -e ENABLE_STARTUP_SCRIPTS=<yes|no> \ -e ENABLE_PRIVOXY=<yes|no> \ -e STRICT_PORT_FORWARD=<yes|no> \ -e USERSPACE_WIREGUARD=<yes|no> \ -e ENABLE_SOCKS=<yes|no> \ -e SOCKS_USER=<socks username> \ -e SOCKS_PASS=<socks password> \ -e LAN_NETWORK=<lan ipv4 network>/<cidr notation> \ -e NAME_SERVERS=<name server ip(s)> \ -e DELUGE_DAEMON_LOG_LEVEL=<info|warning|error|none|debug|trace|garbage> \ -e DELUGE_WEB_LOG_LEVEL=<info|warning|error|none|debug|trace|garbage> \ -e DELUGE_ENABLE_WEBUI_PASSWORD=<yes|no> \ -e VPN_INPUT_PORTS=<port number(s)> \ -e VPN_OUTPUT_PORTS=<port number(s)> \ -e DEBUG=<true|false> \ -e UMASK=<umask for created files> \ -e PUID=<UID for user> \ -e PGID=<GID for user> \ binhex/arch-delugevpn

Please replace all user variables in the above command defined by <> with the correct values.

Access Deluge

Default password for the webui is "deluge"

http://<host ip>:8112

Access Privoxy

http://<host ip>:8118

Access microsocks

<host ip>:9118

default credentials: admin/socks

PIA example

docker run -d \ --cap-add=NET_ADMIN \ -p 8112:8112 \ -p 8118:8118 \ -p 9118:9118 \ -p 58846:58846 \ -p 58946:58946 \ -p 58946:58946/udp \ --name=delugevpn \ -v /apps/docker/deluge/data:/data \ -v /apps/docker/deluge/config:/config \ -v /etc/localtime:/etc/localtime:ro \ -e VPN_ENABLED=yes \ -e VPN_USER=myusername \ -e VPN_PASS=mypassword \ -e VPN_PROV=pia \ -e VPN_CLIENT=openvpn \ -e ENABLE_STARTUP_SCRIPTS=no \ -e ENABLE_PRIVOXY=yes \ -e STRICT_PORT_FORWARD=yes \ -e USERSPACE_WIREGUARD=no \ -e ENABLE_SOCKS=yes \ -e SOCKS_USER=admin \ -e SOCKS_PASS=socks \ -e LAN_NETWORK=192.168.1.0/24 \ -e NAME_SERVERS=84.200.69.80,37.235.1.174,1.1.1.1,37.235.1.177,84.200.70.40,1.0.0.1 \ -e DELUGE_DAEMON_LOG_LEVEL=info \ -e DELUGE_WEB_LOG_LEVEL=info \ -e DELUGE_ENABLE_WEBUI_PASSWORD=yes \ -e VPN_INPUT_PORTS=1234 \ -e VPN_OUTPUT_PORTS=5678 \ -e DEBUG=false \ -e UMASK=000 \ -e PUID=0 \ -e PGID=0 \ binhex/arch-delugevpn

OpenVPN

Please note this Docker image does not include the required OpenVPN configuration file and certificates. These will typically be downloaded from your VPN providers website (look for OpenVPN configuration files), and generally are zipped.

PIA users - The URL to download the OpenVPN configuration files and certs is:-

PIA OpenVPN configuration

Once you have downloaded the zip (normally a zip as they contain multiple ovpn files) then extract it to /config/openvpn/ folder (if that folder doesn't exist then start and stop the docker container to force the creation of the folder).

If there are multiple ovpn files then please delete the ones you don't want to use (normally filename follows location of the endpoint) leaving just a single ovpn file and the certificates referenced in the ovpn file (certificates will normally have a crt and/or pem extension).

WireGuard

If you wish to use WireGuard (defined via 'VPN_CLIENT' env var value ) then due to the enhanced security and kernel integration WireGuard will require the container to be defined with privileged permissions and sysctl support, so please ensure you change the following docker options:- <br/>

from

--cap-add=NET_ADMIN \

to

--sysctl="net.ipv4.conf.all.src_valid_mark=1" \ --privileged=true \

PIA users - The WireGuard configuration file will be auto generated and will be stored in /config/wireguard/wg0.conf AFTER the first run, if you wish to change the endpoint you are connecting to then change the Endpoint line in the config file (default is Netherlands).

Other users - Please download your WireGuard configuration file from your VPN provider, start and stop the container to generate the folder /config/wireguard/ and then place your WireGuard configuration file in there.

Notes

Due to Google and OpenDNS supporting EDNS Client Subnet it is recommended NOT to use either of these NS providers. The list of default NS providers in the above example(s) is as follows:-

84.200.x.x = DNS Watch<br/> 37.235.x.x = FreeDNS<br/> 1.x.x.x = Cloudflare


IMPORTANT<br/> Please note VPN_INPUT_PORTS is NOT to define the incoming port for the VPN, this environment variable is used to define port(s) you want to allow in to the VPN network when network binding multiple containers together, configuring this incorrectly with the VPN provider assigned incoming port COULD result in IP leakage, you have been warned!.


User ID (PUID) and Group ID (PGID) can be found by issuing the following command for the user you want to run the container as:-

id <username>


If you are using VPN provider PIA or ProtonVPN and wish to share the assigned dynamic incoming port with another docker container running in the same network then this can be done via a docker volume, so add the following to your docker run command:-

-v <name of volume>:/shared \

e.g.

-v binhex-shared:/shared \

The incoming port will then be available in /shared/getvpnport.


If you appreciate my work, then please consider buying me a beer :D

PayPal donation

Documentation | Support forum

编辑推荐精选

博思AIPPT

博思AIPPT

AI一键生成PPT,就用博思AIPPT!

博思AIPPT,新一代的AI生成PPT平台,支持智能生成PPT、AI美化PPT、文本&链接生成PPT、导入Word/PDF/Markdown文档生成PPT等,内置海量精美PPT模板,涵盖商务、教育、科技等不同风格,同时针对每个页面提供多种版式,一键自适应切换,完美适配各种办公场景。

AI办公办公工具AI工具博思AIPPTAI生成PPT智能排版海量精品模板AI创作热门
潮际好麦

潮际好麦

AI赋能电商视觉革命,一站式智能商拍平台

潮际好麦深耕服装行业,是国内AI试衣效果最好的软件。使用先进AIGC能力为电商卖家批量提供优质的、低成本的商拍图。合作品牌有Shein、Lazada、安踏、百丽等65个国内外头部品牌,以及国内10万+淘宝、天猫、京东等主流平台的品牌商家,为卖家节省将近85%的出图成本,提升约3倍出图效率,让品牌能够快速上架。

iTerms

iTerms

企业专属的AI法律顾问

iTerms是法大大集团旗下法律子品牌,基于最先进的大语言模型(LLM)、专业的法律知识库和强大的智能体架构,帮助企业扫清合规障碍,筑牢风控防线,成为您企业专属的AI法律顾问。

SimilarWeb流量提升

SimilarWeb流量提升

稳定高效的流量提升解决方案,助力品牌曝光

稳定高效的流量提升解决方案,助力品牌曝光

Sora2视频免费生成

Sora2视频免费生成

最新版Sora2模型免费使用,一键生成无水印视频

最新版Sora2模型免费使用,一键生成无水印视频

Transly

Transly

实时语音翻译/同声传译工具

Transly是一个多场景的AI大语言模型驱动的同声传译、专业翻译助手,它拥有超精准的音频识别翻译能力,几乎零延迟的使用体验和支持多国语言可以让你带它走遍全球,无论你是留学生、商务人士、韩剧美剧爱好者,还是出国游玩、多国会议、跨国追星等等,都可以满足你所有需要同传的场景需求,线上线下通用,扫除语言障碍,让全世界的语言交流不再有国界。

讯飞绘文

讯飞绘文

选题、配图、成文,一站式创作,让内容运营更高效

讯飞绘文,一个AI集成平台,支持写作、选题、配图、排版和发布。高效生成适用于各类媒体的定制内容,加速品牌传播,提升内容营销效果。

热门AI辅助写作AI工具讯飞绘文内容运营AI创作个性化文章多平台分发AI助手
TRAE编程

TRAE编程

AI辅助编程,代码自动修复

Trae是一种自适应的集成开发环境(IDE),通过自动化和多元协作改变开发流程。利用Trae,团队能够更快速、精确地编写和部署代码,从而提高编程效率和项目交付速度。Trae具备上下文感知和代码自动完成功能,是提升开发效率的理想工具。

AI工具TraeAI IDE协作生产力转型热门
商汤小浣熊

商汤小浣熊

最强AI数据分析助手

小浣熊家族Raccoon,您的AI智能助手,致力于通过先进的人工智能技术,为用户提供高效、便捷的智能服务。无论是日常咨询还是专业问题解答,小浣熊都能以快速、准确的响应满足您的需求,让您的生活更加智能便捷。

imini AI

imini AI

像人一样思考的AI智能体

imini 是一款超级AI智能体,能根据人类指令,自主思考、自主完成、并且交付结果的AI智能体。

下拉加载更多