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-07 Sat wk49 10:21] – baumkp | docker_notes:vpn [2024-12-28 Sat wk52 11:23] (current) – [Wireguard] baumkp | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| The scope here concerns use of VPN (Virtual Private Network) to gain secure access from the public network to a local private network. | The scope here concerns use of VPN (Virtual Private Network) to gain secure access from the public network to a local private network. | ||
| - | There have been considered 3 different levels of access as described by the applications used. | + | There have been considered 3 different levels of access as described by the applications used: |
| - | * Nextcloud | + | *Wireguard |
| - | * Privatebin - An encrypted file publicly accessible file sharing server | + | *Tailscale |
| - | * Wireguard - A VPN server | + | *Headscale |
| + | *OpenVPN (Old) | ||
| + | These applications and their scope are described further below. | ||
| + | |||
| + | =====Wireguard===== | ||
| + | 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===== | ||
| + | *[[https:// | ||
| + | * xdeb.org [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | =====Tailscale===== | ||
| + | See Headscale. | ||
| + | ====Reference==== | ||
| + | *[[https:// | ||
| + | *[[https:// | ||
| + | *[[https:// | ||
| + | *[[https:// | ||
| + | *[[https:// | ||
| + | =====Headscale===== | ||
| + | For my use case Headscale was too complicated to setup. | ||
| + | |||
| + | https:// | ||
| + | ====Reference==== | ||
| + | *[[https:// | ||
| + | *[[https:// | ||
| + | *[[https:// | ||
| + | *[[https:// | ||
| + | *[[https:// | ||
| ---- | ---- | ||
| <- docker_notes: | <- docker_notes: | ||