Add wireguard configuration
This commit is contained in:
parent
ce46689f57
commit
a043bae576
16 changed files with 155 additions and 13 deletions
12
vars/vpn.yml
12
vars/vpn.yml
|
|
@ -6,10 +6,18 @@ vpn_interface: 'wg0'
|
|||
vpn_source_range: '10.0.0.0/24'
|
||||
vpn_destination_range: '10.0.0.1/32'
|
||||
|
||||
vpn_server_public_key_path: '/etc/wireguard/keys/public/server.pub'
|
||||
vpn_server_key_path: '/etc/wireguard/keys/private/server.key'
|
||||
vpn_preshared_path: '/etc/wireguard/keys/private/preshared.key'
|
||||
|
||||
vpn_peers:
|
||||
- {
|
||||
name: 'desktop', ip: '10.0.0.3'
|
||||
name: 'desktop',
|
||||
ip: '10.0.0.3',
|
||||
public_key: 'izHzmRwh2yzICps6pFI2Bg3TnmTD66/8uH4loJpkuD4=',
|
||||
}
|
||||
- {
|
||||
name: 'laptop', ip: '10.0.0.2'
|
||||
name: 'laptop',
|
||||
ip: '10.0.0.2',
|
||||
public_key: 'EbWLf2+7x/RymeeiVuX72nZOBqPvdhu2V9pYhszpQEw=',
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue