Closed slrslr closed 7 years ago
I just downloaded today and I'm seeing the same issue.
This often happens when the server is behind NAT and it was set up incorrectly.
See here.
@Nyr Thx for reply. Indeed, i uninstalled openvpn using your script (bash openvpn-install.sh) and then installed again, selecting IP as "127.0.0.1" and then at the end, script said:
Looks like your server is behind a NAT! If your server is NATed (e.g. LowEndSpirit), I need to know the external IP If that's not the case, just ignore this and leave the next field blank External IP:
So i entered my server public facing IP. Then it worked! It would be good if the script somehow auto detect correct IP/NAT, because not everyone is network experienced enough to know his network interface IP is 127.0.0.1, not the already pre-filled public facing IP.
PS: i have OpenVZ VPS which have not eth0 but venet0:0 thank you
PS: for other VPS (OpenVZ, venet0:0 too) this does not work. During openvpn installation using your script, i tried 127.0.0.1 and then public IP, or public IP and then no IP, i also tried to install with just public IP entered. Not one configuration works. It login VPN server, Initialization sequence completed, shows success, but can not browse any web sites or ping from terminal. Here is the client side log: https://p@stebin.com/2W2PymTG . I tried also not only on my Ubuntu 17.04 but also on Android. But same result, connect, but do not transfer any data. @Nyr , if you can advice any command/s or want more info, please let me know.
It would be good if the script somehow auto detect correct IP/NAT, because not everyone is network experienced enough to know his network interface IP
Not possible to do reliably.
network interface IP is 127.0.0.1
Well, 127.0.0.1 is just the loopback IP. If set up on a server behind a NAT, OpenVPN would need to listen on whatever private IP address the server has assigned, not 127.0.0.1. This IP address is usually the one auto-detected by the script in the first step and doesn't need to be changed.
PS: i have OpenVZ VPS which have not eth0 but venet0:0
Not an issue, the script doesn't care about the kind of interface you have available.
for other VPS (OpenVZ, venet0:0 too) this does not work. During openvpn installation using your script, i tried 127.0.0.1 and then public IP, or public IP and then no IP, i also tried to install with just public IP entered. Not one configuration works. It login VPN server, Initialization sequence completed, shows success, but can not browse any web sites or ping from terminal
As I explained, you need to select the private IP address assigned to the server (assuming that it is behind a NAT too). Usually this IP address is automatically filled by the script and you can just press enter, then specify the public IP at the end.
As this is not an issue with the script itself, I'd like to ask you to use the OpenVPN forums if you need further assistance.
Hello, i have: CentOS release 6.9 (Final) OpenVPN 2.4.3 x86_64-redhat-linux-gnu The openvpn-install.sh was downloaded and used yesterday: 2017-09-08
I used generated .ovpn file and i can connect vpnserver both on my windows client and on my android client too. BUT i can not ping or load any website when connected via openvpn on my clients (windows and android)
The server side log:
Client side log (windows client): https://pastebin.com/Kx562wVY
ovpn file: https://pastebin.com/SXymswFT
Please which commands to do to discover cause?