Use DNS from wireguard interface

This commit is contained in:
Sonny Bakker 2025-03-06 02:22:49 +01:00
parent 460d9365f1
commit 079b45be28
7 changed files with 21 additions and 1 deletions

View file

@ -22,6 +22,9 @@ vpn_default:
ip: '10.0.0.3'
subnet: '24'
interface: 'wg0'
dns: '10.0.0.1'
domains:
- ~vpn.fudiggity.nl
public_key_path: '{{ vpn_config_dir }}/keys/public/default/desktop.pub'
private_key_path: '{{ vpn_config_dir }}/keys/private/default/desktop.key'
@ -39,6 +42,9 @@ vpn_media:
ip: '10.0.1.3'
subnet: '24'
interface: 'wg1'
dns: '10.0.1.1'
domains:
- ~media-vpn.fudiggity.nl
public_key_path: '{{ vpn_config_dir }}/keys/public/media/desktop.pub'
private_key_path: '{{ vpn_config_dir }}/keys/private/media/desktop.key'