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}
volumes:
- ${INSTALL_DIRECTORY}/config/prowlarr:/config
restart: unless-stopped
Key changes:
ports
sectionnetwork_mode: "service:gluetun"
Now 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
# Leave the rest as is
Key changes:
9696:9696/tcp
to the portsSave your changes and restart YAMS:
yams restart
Because Prowlarr is now routing its traffic through the VPN (Gluetun), it won’t be able to resolve the internal Docker service names (like radarr
, sonarr
, lidarr
) directly. You’ll need to update the “Host” or “Server” settings for your connected applications within Prowlarr’s “Apps” configuration to use their specific IP addresses.
http://your-ip:9696
For Sonarr:
http://sonarr:8989
to http://172.18.0.13:8989
.http://your-host-ip:9696
(replace your-host-ip
with the actual IP address of your YAMS host, e.g., 192.168.0.190
).For Radarr:
http://radarr:7878
to http://172.18.0.14:7878
.http://your-host-ip:9696
(replace your-host-ip
with the actual IP address of your YAMS host, e.g., 192.168.0.190
).For Lidarr (Optional, if you want to use Lidarr):
+
button, select “Lidarr”.http://your-host-ip:9696
(replace your-host-ip
with the actual IP address of your YAMS host, e.g., 192.168.0.190
).http://172.18.0.15:8686
(assuming Lidarr uses port 8686).After updating all applications, click “Sync App Indexers” on the main Apps page.
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! 🛡️