How to properly configure wireguard?

I seem to have misconfigured the wireguard add-on. I cannot access the Internet and home assistant. I have have done port forwarding on the router.

My wireguard add-on configuration looks like this: I use the public ip address from ips as the host (in the example I specified a different address for security).

server:
  host: 186.35.187.132
  addresses:
    - 192.168.0.2
  dns:
    - 192.168.0.1
peers:
  - name: iphone
    addresses:
      - 192.168.0.108
    allowed_ips: []
    client_allowed_ips:
      - 192.168.0.1/24

When I connect to wireguard I can’t access the internet and home assistant. I think I configured wireguard incorrectly, because I see the following in the add-on log

peer: iNBbrpRFU5xGQoHX/asr75WL3BAG/xjp/zK1RyUAUys=
  allowed ips: 192.168.0.108/32
  persistent keepalive: every 25 seconds
[11:34:34] INFO: Requesting current status from WireGuard...
interface: wg0
  public key: lD6IqURVCZV96mk7p0o2M+IVp5MznbH36i+UToraSh8=
  private key: (hidden)
  listening port: 51820

Hi @bogdan.sv

I’m not sure if it will help but I found this video really useful

1 Like

WHAT IS VPN WIREGUARD | SLZB-06 * Series Manual apparently I did not configure port forwarding on the router, or the route to the Wireguard network