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'

View file

@ -26,6 +26,9 @@ vpn_default:
ip: '10.0.0.2'
subnet: '24'
interface: 'wg0'
dns: '10.0.0.1'
domains:
- ~vpn.fudiggity.nl
public_key_path: '{{ vpn_config_dir }}/keys/public/default/laptop.pub'
private_key_path: '{{ vpn_config_dir }}/keys/private/default/laptop.key'
@ -42,6 +45,9 @@ vpn_media:
ip: '10.0.1.2'
subnet: '24'
interface: 'wg1'
dns: '10.0.1.1'
domains:
- ~media-vpn.fudiggity.nl
public_key_path: '{{ vpn_config_dir }}/keys/public/media/laptop.pub'
private_key_path: '{{ vpn_config_dir }}/keys/private/media/laptop.key'

View file

@ -1,7 +1,7 @@
mpd_listen_address: '127.0.0.1'
mpd_listen_port: '6600'
mpd_remote_address: '10.0.0.1'
mpd_remote_address: 'vpn.fudiggity.nl'
mpd_remote_port: '21000'
mpd_remote_stream_port: '8000' # note that this is not used (yet)