I opened and forwarded port to rpi on server side. Is this correct or I must do the same on client side?
Yes router have public ip.
Here is log:
server:
[20:54:05] INFO: Requesting current status from WireGuard...
interface: wg0
public key: 5TR0f/26ecyXemzJtDZ7JeJ3bUclG31bnYN0KYyVRgk=
private key: (hidden)
listening port: 51820
peer: GpasgrZLAqdeLYs50bgZzPev0rXiPvZXv9uiUsh0iVM=
allowed ips: 172.27.66.5/32
persistent keepalive: every 25 seconds
peer: 9tQA2V+YR3fpCF9aOk4MgWCQ01UTE79xVD6ZXja4g3E=
allowed ips: 172.27.66.6/32
persistent keepalive: every 25 seconds
client:
[20:55:17] INFO: Requesting current status from WireGuard...
interface: wg0
public key: 5TR0f/26ecyXemzJtDZ7JeJ3bUclG31bnYN0KYyVRgk=
private key: (hidden)
listening port: 51820
No, client is behind the nat and it hasn’t public IP and forwarding. Otherwise its no interesting;) Your config looks like a quaitly correct. But client and server don’t view each other. My server hassio is on Ubuntu Server and all ip ports are opeded on it. I can ping my ubuntu server to its public IP and check functionality another services on this computer. Are you sure your server rpi is accesseble from internet?
192.168.1.1 is not in your allowed subnet 192.168.0.0/24
Either change 192.168.0.0/24 to 192.168.1.0/24 or on the off chance you need it change to 192.168.0.0/16
Can’t get the DNS thing running. My tunnel is up and I can get to my HA over the tunnel (also ping works).
But when trying to use HA’s AdGuard as DNS, I won’t get any response. In AdGuard’s log, I can see the request from my client so I guess that the iptable-Rules of the Wireguard-Add-on are simply dropping the DNS response on its way to the client.
This neither works with my internal LAN IP nor with Docker-IP for AdGuard. As I said: Accessing HA is possible so that’s pretty weird.