{"id":13495936,"url":"https://github.com/binhex/arch-delugevpn","last_synced_at":"2025-05-15T08:02:33.248Z","repository":{"id":40693695,"uuid":"30264045","full_name":"binhex/arch-delugevpn","owner":"binhex","description":"Docker build script for Arch Linux base with Deluge, Privoxy and OpenVPN","archived":false,"fork":false,"pushed_at":"2025-04-30T08:16:45.000Z","size":331,"stargazers_count":722,"open_issues_count":114,"forks_count":112,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-04-30T09:29:52.821Z","etag":null,"topics":["arch-linux","deluge","delugevpn-docker","docker-image","downloader","openvpn","openvpn-configuration","ovpn","privoxy","torrents","vpn","wireguard"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/binhex.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-02-03T20:53:24.000Z","updated_at":"2025-04-30T08:16:07.000Z","dependencies_parsed_at":"2022-07-20T14:02:38.424Z","dependency_job_id":"28ac5b12-65de-4ef9-a2ae-0c85b7082fba","html_url":"https://github.com/binhex/arch-delugevpn","commit_stats":{"total_commits":439,"total_committers":4,"mean_commits":109.75,"dds":0.006833712984054663,"last_synced_commit":"884088c14e35d0f468f7f8a1ff965b5327521d12"},"previous_names":[],"tags_count":138,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binhex%2Farch-delugevpn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binhex%2Farch-delugevpn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binhex%2Farch-delugevpn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binhex%2Farch-delugevpn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/binhex","download_url":"https://codeload.github.com/binhex/arch-delugevpn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254301420,"owners_count":22047901,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arch-linux","deluge","delugevpn-docker","docker-image","downloader","openvpn","openvpn-configuration","ovpn","privoxy","torrents","vpn","wireguard"],"created_at":"2024-07-31T19:01:39.914Z","updated_at":"2025-05-15T08:02:33.220Z","avatar_url":"https://github.com/binhex.png","language":"Shell","funding_links":["https://www.paypal.com/en_US/i/btn/btn_donate_SM.gif","https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=MM5E27UX6AUU4"],"categories":["Shell","others","vpn"],"sub_categories":[],"readme":"# Application\n\n\u003c!-- markdownlint-disable MD033 --\u003e\n\n[Deluge](http://deluge-torrent.org/)\u003cbr/\u003e\n[Privoxy](http://www.privoxy.org/)\u003cbr/\u003e\n[microsocks](https://github.com/rofl0r/microsocks)\u003cbr/\u003e\n[OpenVPN](https://openvpn.net/)\u003cbr/\u003e\n[WireGuard](https://www.wireguard.com/)\n\n## Description\n\nDeluge 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.\u003cbr/\u003e\n\nThis 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://\u003chost ip\u003e:8118`.\n\n## Build notes\n\nLatest stable Deluge release from Arch Linux repo.\u003cbr/\u003e\nLatest stable Privoxy release from Arch Linux repo.\u003cbr/\u003e\nLatest stable microsocks release from GitHub.\u003cbr/\u003e\nLatest stable OpenVPN release from Arch Linux repo.\u003cbr/\u003e\nLatest stable WireGuard release from Arch Linux repo.\n\n## Usage\n\n```text\ndocker run -d \\\n    --cap-add=NET_ADMIN \\\n    -p 8112:8112 \\\n    -p 8118:8118 \\\n    -p 9118:9118 \\\n    -p 58846:58846 \\\n    -p 58946:58946 \\\n    -p 58946:58946/udp \\\n    --name=\u003ccontainer name\u003e \\\n    -v \u003cpath for data files\u003e:/data \\\n    -v \u003cpath for config files\u003e:/config \\\n    -v /etc/localtime:/etc/localtime:ro \\\n    -e VPN_ENABLED=\u003cyes|no\u003e \\\n    -e VPN_USER=\u003cvpn username\u003e \\\n    -e VPN_PASS=\u003cvpn password\u003e \\\n    -e VPN_PROV=\u003cpia|airvpn|protonvpn|custom\u003e \\\n    -e VPN_CLIENT=\u003copenvpn|wireguard\u003e \\\n    -e VPN_OPTIONS=\u003cadditional openvpn cli options\u003e \\\n    -e ENABLE_STARTUP_SCRIPTS=\u003cyes|no\u003e \\\n    -e ENABLE_PRIVOXY=\u003cyes|no\u003e \\\n    -e STRICT_PORT_FORWARD=\u003cyes|no\u003e \\\n    -e USERSPACE_WIREGUARD=\u003cyes|no\u003e \\\n    -e ENABLE_SOCKS=\u003cyes|no\u003e \\\n    -e SOCKS_USER=\u003csocks username\u003e \\\n    -e SOCKS_PASS=\u003csocks password\u003e \\\n    -e LAN_NETWORK=\u003clan ipv4 network\u003e/\u003ccidr notation\u003e \\\n    -e NAME_SERVERS=\u003cname server ip(s)\u003e \\\n    -e DELUGE_DAEMON_LOG_LEVEL=\u003cinfo|warning|error|none|debug|trace|garbage\u003e \\\n    -e DELUGE_WEB_LOG_LEVEL=\u003cinfo|warning|error|none|debug|trace|garbage\u003e \\\n    -e DELUGE_ENABLE_WEBUI_PASSWORD=\u003cyes|no\u003e \\\n    -e VPN_INPUT_PORTS=\u003cport number(s)\u003e \\\n    -e VPN_OUTPUT_PORTS=\u003cport number(s)\u003e \\\n    -e DEBUG=\u003ctrue|false\u003e \\\n    -e UMASK=\u003cumask for created files\u003e \\\n    -e PUID=\u003cUID for user\u003e \\\n    -e PGID=\u003cGID for user\u003e \\\n    binhex/arch-delugevpn\n```\n\nPlease replace all user variables in the above command defined by \u003c\u003e with the correct values.\n\n## Access Deluge\n\nDefault password for the webui is \"deluge\"\n\n`http://\u003chost ip\u003e:8112`\n\n## Access Privoxy\n\n`http://\u003chost ip\u003e:8118`\n\n## Access microsocks\n\n`\u003chost ip\u003e:9118`\n\ndefault credentials: admin/socks\n\n## PIA example\n\n```bash\ndocker run -d \\\n    --cap-add=NET_ADMIN \\\n    -p 8112:8112 \\\n    -p 8118:8118 \\\n    -p 9118:9118 \\\n    -p 58846:58846 \\\n    -p 58946:58946 \\\n    -p 58946:58946/udp \\\n    --name=delugevpn \\\n    -v /apps/docker/deluge/data:/data \\\n    -v /apps/docker/deluge/config:/config \\\n    -v /etc/localtime:/etc/localtime:ro \\\n    -e VPN_ENABLED=yes \\\n    -e VPN_USER=myusername \\\n    -e VPN_PASS=mypassword \\\n    -e VPN_PROV=pia \\\n    -e VPN_CLIENT=openvpn \\\n    -e ENABLE_STARTUP_SCRIPTS=no \\\n    -e ENABLE_PRIVOXY=yes \\\n    -e STRICT_PORT_FORWARD=yes \\\n    -e USERSPACE_WIREGUARD=no \\\n    -e ENABLE_SOCKS=yes \\\n    -e SOCKS_USER=admin \\\n    -e SOCKS_PASS=socks \\\n    -e LAN_NETWORK=192.168.1.0/24 \\\n    -e NAME_SERVERS=1.1.1.1,1.0.0.1 \\\n    -e DELUGE_DAEMON_LOG_LEVEL=info \\\n    -e DELUGE_WEB_LOG_LEVEL=info \\\n    -e DELUGE_ENABLE_WEBUI_PASSWORD=yes \\\n    -e VPN_INPUT_PORTS=1234 \\\n    -e VPN_OUTPUT_PORTS=5678 \\\n    -e DEBUG=false \\\n    -e UMASK=000 \\\n    -e PUID=0 \\\n    -e PGID=0 \\\n    binhex/arch-delugevpn\n```\n\n## OpenVPN\n\nPlease 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.\n\nPIA users - The URL to download the OpenVPN configuration files and certs is:-\n\n[PIA OpenVPN configuration](https://www.privateinternetaccess.com/openvpn/openvpn.zip)\n\nOnce 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).\n\nIf 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).\n\n## WireGuard\n\nIf 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:-  \u003cbr/\u003e\n\nfrom\n\n``` bash\n    --cap-add=NET_ADMIN \\\n```\n\nto\n\n``` bash\n    --sysctl=\"net.ipv4.conf.all.src_valid_mark=1\" \\\n    --privileged=true \\\n```\n\n**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).\n\n**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.\n\n## Notes\n\nDue to Google and OpenDNS supporting EDNS Client Subnet it is recommended NOT to use either of these NS providers.\nThe list of default NS providers in the above example(s) is as follows:-\n\n1.x.x.x = Cloudflare\n\n---\n**IMPORTANT**\u003cbr/\u003e\nPlease 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!.\n\n---\nUser ID (PUID) and Group ID (PGID) can be found by issuing the following command for the user you want to run the container as:-\n\n`id \u003cusername\u003e`\n\n---\nIf you appreciate my work, then please consider buying me a beer  :D\n\n[![PayPal donation](https://www.paypal.com/en_US/i/btn/btn_donate_SM.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=MM5E27UX6AUU4)\n\n[Documentation](https://github.com/binhex/documentation) | [Support forum](http://forums.unraid.net/index.php?topic=45812.0)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinhex%2Farch-delugevpn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbinhex%2Farch-delugevpn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinhex%2Farch-delugevpn/lists"}