l-n-s / wireguard-install

WireGuard VPN server installer
MIT License
656 stars 166 forks source link

Cannot install if Private IP is enabled #56

Closed thegulshankumar closed 4 years ago

thegulshankumar commented 4 years ago

for example, I tried on GCP. It showing some error.

root@gcp:~# wget https://raw.githubusercontent.com/l-n-s/wireguard-install/master/wireguard-install.sh -O wireguard-install.sh
--2019-11-11 08:17:41--  https://raw.githubusercontent.com/l-n-s/wireguard-install/master/wireguard-install.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.192.133, 151.101.128.133, 151.101.64.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.192.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7427 (7.3K) [text/plain]
Saving to: ‘wireguard-install.sh’

wireguard-install.sh         100%[=============================================>]   7.25K  --.-KB/s    in 0s      

2019-11-11 08:17:42 (53.9 MB/s) - ‘wireguard-install.sh’ saved [7427/7427]

root@gcp:~# bash wireguard-install.sh
Servers public IP address is 10.XXX.0.6. Is that correct? [y/n]: n
Aborted. Use environment variable SERVER_HOST to set the correct public IP address
root@gcp:~# 
l-n-s commented 4 years ago

Before running the script, run export SERVER_HOST=1.2.3.4 with your public IP address