https://github.com/fabricionaweb/docker-deluge
Just another Deluge image. But compiled from the source.
https://github.com/fabricionaweb/docker-deluge
alpine deluge docker
Last synced: 7 months ago
JSON representation
Just another Deluge image. But compiled from the source.
- Host: GitHub
- URL: https://github.com/fabricionaweb/docker-deluge
- Owner: fabricionaweb
- Created: 2024-03-05T01:14:06.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-01-07T01:08:44.000Z (9 months ago)
- Last Synced: 2025-03-15T15:11:26.224Z (7 months ago)
- Topics: alpine, deluge, docker
- Language: Dockerfile
- Homepage: https://deluge-torrent.org
- Size: 34.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Just another Deluge image. But compiled from the source.
Not fully tested. Not stable. WIP
---
**Environments**
- `DISABLE_VPN` set it to disable VPN
**Needed docker arguments**
- `--cap-add=NET_ADMIN`
- `--sysctl="net.ipv4.conf.all.src_valid_mark=1"`
- `--sysctl="net.ipv6.conf.all.disable_ipv6=1"`**Suggested setup using PostUp/PreDown hooks**
1. Set your `LAN_CIDR` with docker environments eg: `10.0.0.0/24` or `192.168.0.0/24`
1. `BR_GATEWAY`, `BR_DEV`, `BR_CIDR` are exported from [.profile](./rootfs/root/.profile) and should be available on interative shell, otherwise needs to load `source /root/.profile`
1. Add or replace **PostUp** and **PreDown** on your `/config/wg0.conf````
# LAN_CIDR comes from docker env
PostUp = ip route add $LAN_CIDR via $BR_GATEWAY dev $BR_DEV
PostUp = iptables -I OUTPUT ! -d $LAN_CIDR ! -o %i -m mark ! --mark $(wg show %i fwmark) -m addrtype ! --dst-type LOCAL -j REJECT
PostUp = iptables -I OUTPUT -s $BR_CIDR -d $BR_CIDR -j ACCEPT
PreDown = ip route del $LAN_CIDR
PreDown = iptables -F OUTPUT
```