Wireguard client and WLAN-SSID-Config.
NetworkManager wireguard VPN-config will be created and updated. Split configuration of WLAN-SSID in inventory (SSID) and vault (secret).
This commit is contained in:
parent
450ca22441
commit
9c068dd915
6 changed files with 448 additions and 280 deletions
25
roles/lmn_teacherlaptop/templates/wg0.nmconnection.j2
Normal file
25
roles/lmn_teacherlaptop/templates/wg0.nmconnection.j2
Normal file
|
@ -0,0 +1,25 @@
|
|||
[connection]
|
||||
id=wg0
|
||||
type=wireguard
|
||||
autoconnect=false
|
||||
interface-name=wg0
|
||||
|
||||
[wireguard]
|
||||
listen-port=51820
|
||||
private-key={{ wg_privatekey }}
|
||||
|
||||
[wireguard-peer.{{ wg_serverpublickey }}]
|
||||
endpoint={{ wg_endpoint }}
|
||||
allowed-ips={{ wg_allowed_ips }}
|
||||
|
||||
[ipv4]
|
||||
address1={{ wg_ip }}/{{ wg_ip_cdr }}
|
||||
dns={{ wg_dns }}
|
||||
dns-search={{ wg_dns_search }}
|
||||
method=manual
|
||||
|
||||
[ipv6]
|
||||
addr-gen-mode=stable-privacy
|
||||
method=ignore
|
||||
|
||||
[proxy]
|
Loading…
Add table
Add a link
Reference in a new issue