Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
carricktoupe opened this issue Jan 5, 2024 · 3 comments

Comments

@carricktoupe
Copy link

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

@carricktoupe
Copy link
Author

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

@changchichung
Copy link

changchichung commented Jan 11, 2024

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#

@vaughngx4
Copy link
Contributor

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/*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants