I've started setting up my own VPN Service via WireGuard which works pretty fine with the following ...
Configuration (working)
Client
[Interface]
PrivateKey = *hidden*
Address = 10.6.0.2/24
DNS = 1.1.1.1
[Peer]
PublicKey = *hidden*
PresharedKey = *hidden*
AllowedIPs = 0.0.0.0/0, ::/0
Endpoint = vpn.myserver.net:51820
I've set AllowedIPs (IPv4) to 0.0.0.0/0 allowing the Client routing his DNS Request over the Server while preventing a DNS Leak.
My PiHole Service uses the eth0 Interface, while Wireguard uses it's own called wg0.
And the private IPv4 of Pihole (DNS) is 10.0.0.5 and the Server Gateway is 10.0.0.1.
Configuration (not working so far)
Client
[Interface]
PrivateKey = *hidden*
Address = 10.6.0.2/24
DNS = 10.0.0.5
[Peer]
PublicKey = *hidden*
PresharedKey = *hidden*
AllowedIPs = 0.0.0.0/0, ::/0
Endpoint = vpn.myserver.net:51820
I appreciate any ideas and tips Posted under this Question, happy commenting :)