Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
docker_notes:vpn [2024-12-27 Fri wk52 19:35] – [Reference] baumkp | docker_notes:vpn [2024-12-28 Sat wk52 11:23] (current) – [Wireguard] baumkp | ||
---|---|---|---|
Line 12: | Line 12: | ||
=====Wireguard===== | =====Wireguard===== | ||
- | I previously successfully setup [[https:// | + | I previously successfully setup [[https:// |
+ | Using Docker [[https:// | ||
+ | ++++docker-compose.yml| | ||
+ | <code yaml>--- | ||
+ | services: | ||
+ | wireguard: | ||
+ | image: lscr.io/ | ||
+ | container_name: | ||
+ | cap_add: | ||
+ | - NET_ADMIN | ||
+ | - SYS_MODULE #optional | ||
+ | environment: | ||
+ | - PUID=1000 | ||
+ | - PGID=1000 | ||
+ | - TZ=Australia/ | ||
+ | - SERVERURL=kptree.net #optional | ||
+ | - SERVERPORT=51820 #optional | ||
+ | - PEERS=2 #optional | ||
+ | - PEERDNS=auto #optional | ||
+ | - INTERNAL_SUBNET=10.13.13.0 #optional | ||
+ | - ALLOWEDIPS=0.0.0.0/ | ||
+ | - PERSISTENTKEEPALIVE_PEERS=all #optional | ||
+ | - LOG_CONFS=true #optional | ||
+ | volumes: | ||
+ | - ./ | ||
+ | #- / | ||
+ | ports: | ||
+ | - 51820: | ||
+ | sysctls: | ||
+ | - net.ipv4.conf.all.src_valid_mark=1 | ||
+ | restart: unless-stopped</ | ||
+ | ++++ | ||
+ | |||
+ | The Wireguard container [[https:// | ||
+ | *Variables '' | ||
+ | *To add more peers/ | ||
+ | *To display the QR codes of active peers again, you can use the following command and list the peer numbers as arguments: '' | ||
====References===== | ====References===== | ||
*[[https:// | *[[https:// | ||
Line 28: | Line 64: | ||
=====Tailscale===== | =====Tailscale===== | ||
+ | See Headscale. | ||
====Reference==== | ====Reference==== | ||
*[[https:// | *[[https:// | ||
Line 36: | Line 72: | ||
*[[https:// | *[[https:// | ||
=====Headscale===== | =====Headscale===== | ||
+ | For my use case Headscale was too complicated to setup. | ||
+ | https:// | ||
====Reference==== | ====Reference==== | ||
*[[https:// | *[[https:// |