this post was submitted on 29 Dec 2023
1 points (100.0% liked)

WireGuard

3 readers
1 users here now

WireGuard - a fast, modern, secure VPN Tunnel.

founded 1 year ago
MODERATORS
 
This is an automated archive.

The original was posted on /r/wireguard by /u/1FNn4 on 2023-12-29 15:13:55+00:00.


I generated wireguard conf file for cloudflare private tunnel. But I had issue with dns resolved.

github.com/rany2/warp.sh

Client using dnscrypt-proxy:

cat /etc/resolv.conf
nameserver 127.0.0.1 
options edns0 
trust-ad search .

Endpoint also using dnscrypt-proxy cat /etc/resolv.conf

nameserver 127.0.2.1

wireguard conf file:

[Interface] 
PrivateKey = x 
Address = x 
MTU = 1280
PostUp = resolvectl dns %i 127.0.2.1; resolvectl domain %i ~corp

[Peer] 
PublicKey = x
AllowedIPs = 0.0.0.0/0, ::/0 
Endpoint = x

nslookup google.com
;; communications error to 127.0.0.1#53: timed out ;;
 communications error to 127.0.0.1#53: timed out ;; 
communications error to 127.0.0.1#53: timed out ;;
 no servers could be reached

With this configuration I can use ssh to endpoint. But client not using cannot resolve dns querys.

I want to use wireguard with local resolver either client or endpoint.

Thanks advance.

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here