forked from gcgarner/IOTstack
-
Notifications
You must be signed in to change notification settings - Fork 307
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds service definition from [IOTstack tutorial: Quick and Dirty WireGuard](https://gist.github.com/Paraphraser/f46014b8a27e3f878f07657d6db4490e) gist. Incorporates gist documentation into two IOTstack documents: * Accessing-your-Device-from-the-internet.md * WireGuard.md Modifies `duck.sh` to: 1. Include more inline documentation. 2. Make the random delay conditional on whether the process has been launched in the background (eg by cron) where a delay is expected and required, or in the foreground (eg directly by the user) where a delay is unhelpful. 3. Restore "chattiness" to the `curl` command. The assumption is that, when launched by `cron`, STDOUT and STDERR will be redirected to `/dev/null` but that in other situations, having full debug output will be useful.
- Loading branch information
1 parent
65fe9d9
commit 02222e2
Showing
6 changed files
with
711 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
wireguard: | ||
image: linuxserver/wireguard | ||
container_name: wireguard | ||
cap_add: | ||
- NET_ADMIN | ||
- SYS_MODULE | ||
image: ghcr.io/linuxserver/wireguard | ||
restart: unless-stopped | ||
environment: | ||
- PUID=1000 | ||
- PGID=1000 | ||
- TZ=Europe/Berlin | ||
- SERVERURL=<enter yours>.duckdns.org | ||
- SERVERPORT=51820 | ||
- PEERS=1 | ||
- PEERDNS=auto | ||
- INTERNAL_SUBNET=100.64.0.0/24 | ||
volumes: | ||
- ./services/wireguard/config:/config | ||
- /lib/modules:/lib/modules | ||
- PUID=1000 | ||
- PGID=1000 | ||
- TZ=Etc/UTC | ||
- SERVERURL=your.dynamic.dns.name | ||
- SERVERPORT=51820 | ||
- PEERS=laptop,phone,tablet | ||
- PEERDNS=auto | ||
- ALLOWEDIPS=0.0.0.0/0 | ||
ports: | ||
- "51820:51820/udp" | ||
- "51820:51820/udp" | ||
volumes: | ||
- ./volumes/wireguard:/config | ||
- /lib/modules:/lib/modules:ro | ||
cap_add: | ||
- NET_ADMIN | ||
- SYS_MODULE | ||
sysctls: | ||
- net.ipv4.conf.all.src_valid_mark=1 | ||
restart: unless-stopped | ||
- net.ipv4.conf.all.src_valid_mark=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.