Wireguard Server Linux


```typesudo apt install linux-headers-$(uname -r)```

```type
version: "2.1"services:  wireguard:    image: ghcr.io/linuxserver/wireguard    container_name: wireguard    cap_add:      - NET_ADMIN      - SYS_MODULE    environment:      - PUID=1000      - PGID=1000      - SERVERURL={{HOST}}      - PEERS={{[PEAR_NAME]}}      - INTERNAL_SUBNET=10.20.0.0      - PEERDNS=auto      - ALLOWEDIPS=0.0.0.0/0      - SERVERPORT=51820      - TZ=Asia/Seoul    volumes:      - /home/stryx/server/wireguard/config:/config      - /lib/modules:/lib/modules    ports:      - 51820:51820/udp    sysctls:      - net.ipv4.conf.all.src_valid_mark=1    restart: unless-stopped```

> [Docker Hub](https://hub.docker.com/r/linuxserver/wireguard)

> [Build software better, together](https://github.com/orgs/linuxserver/packages/container/package/wireguard)

> [linuxserver/docker-wireguard](https://github.com/linuxserver/docker-wireguard/issues)

