4.0 KiB
title, date, draft, weight, summary
title | date | draft | weight | summary |
---|---|---|---|---|
Running Prowlarr Behind the VPN | 2024-09-27T16:44:00-03:00 | false | 60 | A complete guide to routing Prowlarr's traffic through your VPN for extra privacy |
Extra Privacy for Prowlarr 🔒
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!
Why Put Prowlarr Behind the VPN? 🤔
- Bypass ISP Blocks: Some ISPs block torrent indexer websites
- Extra Privacy: Keep your searches private
- Better Access: Reach indexers that might be geo-blocked in your country
Configuration Steps 🛠️
We'll need to modify two services in your docker-compose.yaml
file: Prowlarr and Gluetun. Let's do this step by step!
Step 1: Modify Prowlarr's Config
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:
- Remove or comment out the
ports
section - Add
network_mode: "service:gluetun"
- Add
WEBUI_PORT=9696
to the environment variables
Step 2: Update Gluetun's Config
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
volumes:
- ${INSTALL_DIRECTORY}/config/gluetun:/config
environment:
- FIREWALL_OUTBOUND_SUBNETS=192.168.1.0/24 # Add this line
restart: unless-stopped
Key changes:
- Add
9696:9696/tcp
to the ports - Add
FIREWALL_OUTBOUND_SUBNETS
to the environment section
Step 3: Find Your Subnet 🔍
The FIREWALL_OUTBOUND_SUBNETS
value needs to match your container subnet. Here's how to find it:
- Open Portainer
- Click on "Containers"
- Look at the "IP Address" column
Most setups use one of these subnets:
172.18.0.0/24
- If your containers use IPs like172.18.x.x
192.168.1.0/24
- If your containers use IPs like192.168.1.x
Step 4: Apply the Changes 🔄
Save your changes and restart YAMS:
yams restart
Testing Your Setup 🎯
After YAMS restarts, check that:
- You can still access Prowlarr at
http://your-ip:9696
- Your indexers still work
- The search function works correctly
Troubleshooting 🔧
Can't Access Prowlarr?
- Check Gluetun's logs:
docker logs gluetun
- Verify your subnet setting is correct
- Make sure the port mapping is right in both services
Indexers Not Working?
- Check your VPN connection:
yams check-vpn
- Try accessing an indexer manually through Prowlarr
- Check Prowlarr's logs for any errors
Still Having Issues?
- Compare your configuration with the examples above
- Make sure your VPN provider allows port forwarding
- Try a different VPN server
Pro Tips 💡
- Speed Matters: Choose a VPN server close to you for better performance
- Regular Checks: Use
yams check-vpn
to verify your VPN is working - Monitor Logs: Keep an eye on both Prowlarr and Gluetun logs for issues
Need Help? 🆘
If you're stuck:
- Check the Common Issues page
- Visit the YAMS Forum
- Join our Discord or Matrix chat
Remember: Taking a few extra steps for privacy is always worth it! Stay safe out there! 🛡️