Help Needed: Setting Up PIA WireGuard with Docker on TrueNAS

May 6, 2025 1 answer
Asked by regular_expressions
I'm trying to set up the PIA WireGuard VPN through Portainer (Docker) on my TrueNAS Scale server, but I'm hitting some snags. I attempted to use Glueten to find the WireGuard configuration file from PIA, but I couldn't locate it. I also tried using the Docker container from Docker Hub (thrnz/docker-wireguard-pia), but that hasn't worked for me either. If anyone has experience running WireGuard in Docker for PIA and can share how you got it to work, I'd really appreciate your assistance! Just a side noteโ€”I really like PIA, but setting this up feels way more complicated than it should be compared to their competitors.

Answers

relay+coil
I've been using that container for a couple of years now without any issues. I set it up with Docker Compose and routed all my torrent containers through it. Here's a snippet of my configuration: ```yaml services: vpn: image: thrnz/docker-wireguard-pia hostname: torrents volumes: - /srv/safe/docker/piawireguard/pia:/pia - /srv/safe/docker/piawireguard/pia-shared:/pia-shared cap_add: - NET_ADMIN - SYS_MODULE devices: - /dev/net/tun:/dev/net/tun container_name: piawireguard environment: - LOC=${PIALOC} - USER=${PIAUSER} - PASS=${PIAPASS} - LOCAL_NETWORK=${PIALOCAL_NETWORK} - PORT_FORWARDING=1 sysctls: - net.ipv4.conf.all.src_valid_mark=1 - net.ipv6.conf.default.disable_ipv6=1 - net.ipv6.conf.all.disable_ipv6=1 - net.ipv6.conf.lo.disable_ipv6=1 healthcheck: test: ping -c 1 www.google.com || exit 1 interval: 30s timeout: 10s retries: 3 networks: MyMacvlan2: ipv4_address: 10.10.10.80 restart: unless-stopped ``` This setup has worked great for me! Let me know if you need any more specifics.

silo inspection 12: Are you sure you're using the right container for WireGuard? Just double-checking!

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions