bring up the vpn

This commit is contained in:
rene
2022-02-25 14:06:37 +01:00
parent c884684d51
commit 785e422be4
2 changed files with 12 additions and 3 deletions

View File

@@ -16,3 +16,12 @@
owner: root
group: root
mode: '0600'
- name: server | utilities | wireguard start vpn
command: wg-quick up VPN
- name: server | utilities | wireguard enable service
service:
name: "wg@VPN"
state: started
enabled: true

View File

@@ -5,6 +5,6 @@ PostUp = wg set %i private-key /etc/wireguard/privatekey
[Peer]
PublicKey = {{ wg_server_pubkey }}
Endpoint = wg_endpoint
Allowed_IPs = 192.168.3.0/24, 192.168.1.0/24
Endpoint = {{ wg_endpoint }}
AllowedIPs = 192.168.3.0/24, 192.168.1.0/24
PersistentKeepalive = 25