Help Needed: Setting Up PIA WireGuard with Docker on TrueNAS

0
2
Asked By TechWhiz42 On

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.

1 Answer

Answered By GamerGuy97 On

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.

SupportFreak88 -

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

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.