WireGuard / wireguard-vyatta-ubnt

WireGuard for Ubiquiti Devices
https://www.wireguard.com/
GNU General Public License v3.0
1.46k stars 69 forks source link

No wg0 interface after installing #50

Closed ShawnDordeJay closed 3 years ago

ShawnDordeJay commented 3 years ago

Hi, I have no interface wg0 after installing wireguard on my USG3. I installed the newest release and updated all my components. Already tried to uninstall, reboot and install again but still no interface wg0 available. Does somebody have a clue, what is wrong here? Thanks in advance

dc361 commented 3 years ago

The interface doesn't show up until you have it configured (on the Edgerouter - not sure on the USG, perhaps someone with one could chime in...)

ShawnDordeJay commented 3 years ago

do you mean, until I created the config.gateway.json on the controller and provisioned to the USG3?

dc361 commented 3 years ago

Correct as far as I know...

ShawnDordeJay commented 3 years ago

My config.gateway.json was invalid (checked my json file with some online tool; comments from the example are not allowed) and was located at the wrong place. The right location is (Raspberry Pi) /usr/lib/unifi/data/sites/<site-id> and not as I tought /var/lib/unifi/data/sites/<site-id>. After correcting those things, I got an error that the subnet in my json file already exists. So i had to delete the subnet on my controller, provision again and it worked.