ugurrdemirel/wireguard-oracle-cloud-install

Error during creation ' AllowedIP is not in the correct format: `10.0.0.186/242/32'

Opened this issue · 3 comments

Created using default port, got internal ip from hostname -I.
image

have already tried using the fix described below installation. (in regards to Oracle's IP policy)

I have the same error this morning , and I also did run the fix script in readme , but it does not work.

root@wg-cowbay-org:/etc/wireguard# ./add-peer.sh
Starting WireGuard peer configuration...
Generating keypair...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    13  100    13    0     0     83      0 --:--:-- --:--:-- --:--:--    83
Setting peer configuration...
wg-quick: `wg0' is not a WireGuard interface
Updating server configuration...
[#] ip link add wg0 type wireguard
[#] wg setconf wg0 /dev/fd/63
AllowedIP is not in the correct format: `10.11.12.1/242/32'
Configuration parsing error
[#] ip link delete dev wg0
You can connect using the config /etc/wireguard/peer2/peer.conf -- or -- the QR code below:
root@wg-cowbay-org:/etc/wireguard#

If you read through what you've both posted you'll notice a message saying "wg0 is not a WireGuard interface. @carricktoupe you can see in your output that ./wireguard-autoconfig was not run. This is why it isn't working.

Run the following command, then follow the installation instructions again.

sudo rm -rf /etc/wireguard/*