mirror of
https://github.com/trailofbits/algo.git
synced 2025-06-05 06:33:56 +02:00
WireGuard: Generate QR codes (#1129)
* WireGuard: Generate QR codes * Update client-android.md
This commit is contained in:
parent
dbd68aa97d
commit
1442586682
3 changed files with 16 additions and 2 deletions
|
@ -3,5 +3,4 @@
|
||||||
## Installation via profiles
|
## Installation via profiles
|
||||||
|
|
||||||
1. [Install the WireGuard VPN Client](https://play.google.com/store/apps/details?id=com.wireguard.android).
|
1. [Install the WireGuard VPN Client](https://play.google.com/store/apps/details?id=com.wireguard.android).
|
||||||
2. Copy `wireguard/{username}.conf` to your phone's internal storage.
|
2. Open QR code `configs/<ip_address>/wireguard/<username>.png` and scan it in the WireGuard app
|
||||||
3. Open the WireGuard app and add a connection using your AlgoVPN configuration file.
|
|
||||||
|
|
|
@ -10,3 +10,4 @@ pyopenssl
|
||||||
jinja2==2.8
|
jinja2==2.8
|
||||||
shade
|
shade
|
||||||
pycrypto
|
pycrypto
|
||||||
|
segno
|
||||||
|
|
|
@ -42,6 +42,20 @@
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
become: false
|
become: false
|
||||||
|
|
||||||
|
- name: Generate QR codes
|
||||||
|
shell: >
|
||||||
|
umask 077;
|
||||||
|
which segno &&
|
||||||
|
segno --scale=5 --output={{ item.1 }}.png \
|
||||||
|
"{{ lookup('template', 'client.conf.j2') }}" || true
|
||||||
|
changed_when: false
|
||||||
|
with_indexed_items: "{{ users }}"
|
||||||
|
delegate_to: localhost
|
||||||
|
become: false
|
||||||
|
args:
|
||||||
|
chdir: "{{ wireguard_config_path }}"
|
||||||
|
executable: bash
|
||||||
|
|
||||||
- name: WireGuard enabled and started
|
- name: WireGuard enabled and started
|
||||||
service:
|
service:
|
||||||
name: "{{ service_name }}"
|
name: "{{ service_name }}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue