angristan / openvpn-install

Set up your own OpenVPN server on Debian, Ubuntu, Fedora, CentOS or Arch Linux.
https://stanislas.blog
MIT License
13.7k stars 2.98k forks source link

I am able to connect server and client within the lan but unable to connect server and client over internet. #716

Open nekkantian opened 4 years ago

nekkantian commented 4 years ago

Checklist

Describe the issue I am able to connect server and client within the lan but unable to connect server and client over internet. New to linux and openvpn

To Reproduce Steps to reproduce the behavior:

  1. Start openvpn Server on Centos 7
  2. From win 10, tried connecting to openvpn server over internet

Expected behavior Client should be connected to server

Logs NA

Server if applicable):

Client (if applicable):

Additional context I am able to connect server and client within the lan but unable to connect server and client over internet. New to linux and openvpn

randshell commented 4 years ago

You would have to open the port for OpenVPN in your router to connect from outside the LAN, google it for instructions for your router model.

Also verify that your .ovpn profiles use the public IP of the router at the remote option, you probably have the LAN IP now. Edit the file /etc/openvpn/client-template.txt too if this is the case.