unifios-utilities/wireguard-go/on_boot.d/20-wireguard.sh
2020-07-12 22:54:09 -07:00

11 lines
342 B
Bash

#!/bin/sh
# Starts a wireguard container that is deleted after it is stopped.
# All configs stored in /mnt/data/wireguard
podman run -i -d --rm --net=host --name wireguard --privileged \
-v /mnt/data/wireguard:/etc/wireguard \
-v /dev/net/tun:/dev/net/tun \
-e LOG_LEVEL=info -e WG_COLOR_MODE=always \
masipcat/wireguard-go