You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm encountering an issue when trying to add a new WireGuard peer using the wireguard-manager.sh script. Specifically, the script fails with the following errors:
/usr/local/bin/wireguard-manager.sh: line 1500: [: 10.0.0.2: integer expression expected
/usr/local/bin/wireguard-manager.sh: line 1578: 10.0.0.2: syntax error: invalid arithmetic operator (error token is ".0.0.2")
It seems like the script is attempting to use 10.0.0.2 for the new peer, but this IP address is already in use by another WireGuard peer, causing conflicts.
Steps I've taken:
Tried adding a new WireGuard peer using the 5 option in the management script.
The script attempts to use 10.0.0.2 for the new peer, even though it is already assigned.
The script fails because it's performing arithmetic operations on an IP address that is already in use.
What I believe is happening:
The script does not properly check if the IP address is already assigned to another peer. As a result, it tries to reuse an already taken IP address and attempts invalid arithmetic operations on it.
My request:
Could you please advise on how to fix this issue? Is there a way to ensure the script checks for IP address availability before trying to assign a new peer, or is there a workaround to manually assign a unique IP address?
Thank you for your help!
Best regards,
Alex
The text was updated successfully, but these errors were encountered:
Hi,
I'm encountering an issue when trying to add a new WireGuard peer using the
wireguard-manager.sh
script. Specifically, the script fails with the following errors:It seems like the script is attempting to use
10.0.0.2
for the new peer, but this IP address is already in use by another WireGuard peer, causing conflicts.Steps I've taken:
5
option in the management script.10.0.0.2
for the new peer, even though it is already assigned.What I believe is happening:
The script does not properly check if the IP address is already assigned to another peer. As a result, it tries to reuse an already taken IP address and attempts invalid arithmetic operations on it.
My request:
Could you please advise on how to fix this issue? Is there a way to ensure the script checks for IP address availability before trying to assign a new peer, or is there a workaround to manually assign a unique IP address?
Thank you for your help!
Best regards,
Alex
The text was updated successfully, but these errors were encountered: