# PIA WireGuard

PIA WireGuard is a self-hosted network services app. A Docker container for setting up Private Internet Access (PIA) WireGuard connectivity and exporting the client configuration file to a directory, useful for homelab users who want a simple PIA WireGuard setup. It is open source and self-hosted, installable on Docker Hub and Unraid.

Canonical page: https://ourlocalhost.com/app/573/pia-wireguard

## Description

A Docker container for setting up Private Internet Access (PIA) WireGuard connectivity and exporting the client configuration file to a directory, useful for homelab users who want a simple PIA WireGuard setup.

## Platform availability

Available on 1 of 9 platforms: Unraid.

## Health score

66/100 (Good), based on 4 of 4 factors.
- Maintained: 84 (last commit 24 days ago)
- Popular: 53 (446 GitHub stars)
- Easy to install: 35 (1 install platform, install notes, Docker image)
- Light to run: 80 (1 GB minimum RAM, runs on ARM)

## Links

- Docker Hub: https://hub.docker.com/r/thrnz/docker-wireguard-pia
- Unraid: https://ca.unraid.net/apps/pia-wireguard-1ms61d50o5p6rh?q=pia-wireguard

## Common questions

### Do I need special Docker capabilities?

The container requires NET_ADMIN. SYS_MODULE may also be needed if the host uses a kernel module for WireGuard.

### How do I expose my local network through the PIA tunnel?

Set LOCAL_NETWORK to the LAN ranges you want to route. If it is not set, LAN access is unavailable.

### How do I handle a PIA location that fails during startup?

Provide multiple LOC values separated by spaces or commas. They are used as fallbacks if the initial endpoint registration fails.

### How do I keep inbound traffic working behind NAT?

Set KEEPALIVE, for example to 25, so idle links do not drop incoming packets.

### Can I connect a qBittorrent container to the same PIA network?

Yes, attach another container with network_mode to the same network and add a dependency on the PIA container.

---
Source: Our Local Host (https://ourlocalhost.com/app/573/pia-wireguard), the self-hosted and open-source app directory.
