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

@@ -15,4 +15,13 @@
src: client_VPN.conf.j2 src: client_VPN.conf.j2
owner: root owner: root
group: root group: root
mode: '0600' 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] [Peer]
PublicKey = {{ wg_server_pubkey }} PublicKey = {{ wg_server_pubkey }}
Endpoint = wg_endpoint Endpoint = {{ wg_endpoint }}
Allowed_IPs = 192.168.3.0/24, 192.168.1.0/24 AllowedIPs = 192.168.3.0/24, 192.168.1.0/24
PersistentKeepalive = 25 PersistentKeepalive = 25