[SOLVED] Wireguard and dns leaks

how can I do it ? or where can i read

after this command i see more 2-3 ISP NS's , which did not exist before.
in which file are added this value after comand?

Either add this entry in /etc/hosts or use its IP.

In /tmp/resolve.conf.auto

1 Like

i fecit this command uci set network.wan.peerdns="0"
and added ip to /etc/hosts
vpn work , but with this leak

I have a feeling that it will never end!

i ask a question
eg: I set everything up first and added nothing in Interfaces - WAN in Luci

Should there be a leak?

You forgot to run

uci commit network 
service network restart

Yes, the peer DNS option is enabled by default.

Probably there's some misunderstanding.

no connection
/hosts

127.0.0.1 localhost
de4-wireguard.mullvad.net

::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
uci set network.wan.peerdns="0"
uci commit network 
service network restart

In case you didn't understand it, you need to add the IP address of the vpn endpoint before the hostname, not just the hostname.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.