While downloading .torrent files isn’t usually illegal, some ISPs might try to block your access to indexers. Let’s fix that by putting Prowlarr behind your VPN!
We’ll need to modify two services in your docker-compose.yaml
file: Prowlarr and Gluetun. Let’s do this step by step!
First, let’s update Prowlarr to use the VPN network. Open your docker-compose.yaml
and find the Prowlarr service:
prowlarr:
image: lscr.io/linuxserver/prowlarr
container_name: prowlarr
# Delete or comment out the 'ports' section
# ports:
# - 9696:9696
network_mode: "service:gluetun" # Add this line
environment:
- PUID=${PUID}
- PGID=${PGID}
- WEBUI_PORT=9696 # Add this line
volumes:
- ${INSTALL_DIRECTORY}/config/prowlarr:/config
restart: unless-stopped
Key changes:
ports
sectionnetwork_mode: "service:gluetun"
WEBUI_PORT=9696
to the environment variablesNow we need to tell Gluetun to handle Prowlarr’s traffic. Find the Gluetun service in your docker-compose.yaml
:
gluetun:
image: qmcgaw/gluetun:v3
container_name: gluetun
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
ports:
- 8888:8888/tcp # HTTP proxy
- 8388:8388/tcp # Shadowsocks
- 8388:8388/udp # Shadowsocks
- 8080:8080/tcp # gluetun
- 9696:9696/tcp # Add this line for Prowlarr
volumes:
- ${INSTALL_DIRECTORY}/config/gluetun:/config
environment:
- FIREWALL_OUTBOUND_SUBNETS=192.168.1.0/24 # Add this line
restart: unless-stopped
Key changes:
9696:9696/tcp
to the portsFIREWALL_OUTBOUND_SUBNETS
to the environment sectionThe FIREWALL_OUTBOUND_SUBNETS
value needs to match your container subnet. Here’s how to find it:
Most setups use one of these subnets:
172.18.0.0/24
- If your containers use IPs like 172.18.x.x
192.168.1.0/24
- If your containers use IPs like 192.168.1.x
Save your changes and restart YAMS:
yams restart
After YAMS restarts, check that:
http://your-ip:9696
docker logs gluetun
yams check-vpn
yams check-vpn
to verify your VPN is workingIf you’re stuck:
Remember: Taking a few extra steps for privacy is always worth it! Stay safe out there! 🛡️