wireguard-install icon indicating copy to clipboard operation
wireguard-install copied to clipboard

Endpoint uses local IP address (should use public IP)

Open webaddicto opened this issue 3 years ago • 1 comments

I have tested the script in a Scaleway VPS and WireGuard was installed correctly (good job!).

Only one issue, in the generated client config file it looks like Endpoint uses local IP:

Endpoint = 10.64.222.29:51411

It should use VPS public IP address.

After changing it with the public IP address all worked fine.

webaddicto avatar Nov 02 '20 23:11 webaddicto

The script gets the IP from the default interface and assumes it is a public one. Before actually using it in the configuration, the installer asks you to confirm it is indeed the public IP of the server (you can input a public hostname too, for example myvps.ovh), you must have confirmed it by accident. You can change it inside /etc/wireguard/params to be applied for new clients.

randshell avatar Nov 13 '20 22:11 randshell

Yeah, the first question that is asked is:

root@server:~# ./wireguard-install.sh
Welcome to the WireGuard installer!
The git repository is available at: https://github.com/angristan/wireguard-install

I need to ask you a few questions before starting the setup.
You can keep the default options and just press enter if you are ok with them.

IPv4 or IPv6 public address: ....

angristan avatar Jan 22 '23 14:01 angristan