bring up the vpn
This commit is contained in:
@@ -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
|
||||||
@@ -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
|
||||||
Reference in New Issue
Block a user