Hi,
Im trying to run a Wireguard VPN on my Router to connect to my LAN remotely. I followed the instructions in the wiki and generated a privatekey and entered it in LuCi. But Wire-Guard Status shows: Interface does not have a public key!
I also had DNS Rebind Protection on as in this thread. But disabling it didnt help
System Log shows:
Fri May 24 17:05:58 2019 daemon.notice netifd: Interface 'Wireguard' is setting up now
Fri May 24 17:05:58 2019 daemon.notice netifd: Wireguard (16286): Line unrecognized: `PublicKey='
Fri May 24 17:05:58 2019 daemon.notice netifd: Wireguard (16286): Configuration parsing error
Fri May 24 17:06:04 2019 daemon.notice netifd: Interface 'Wireguard' is now down
Fri May 24 17:06:04 2019 daemon.notice netifd: Interface 'Wireguard' is setting up now
I think the issue is here the PublicKey line. To be sure, I'd have to see your /etc/config/network file, but the syntax is probably incorrect. It should look like this:
option public_key 'XXXXXXXXXXXXXXXX='
It that doesn't fix it, post your network file (obscure the keys and any other sensitive information, of course).
Sorry I dont understand your post. To be honest I didnt really understand what dns rebind protection is.
I followed this wiki article that said to only generate the privatekey and then paste it into LuCi and LuCi would then gernerate the publickey. https://openwrt.org/docs/guide-user/services/vpn/wireguard
This is my /etc/config/network It also includes an old setup that I deleted in LuCi. Im not sure why.
The option with the public key is a different old interface that i deleted. but somehow its still present in the config file.
Can I just generate a public key on the cli and copy it there in the file?