In order to make the VPN server to work, that VPN server router needs to have a public IP address or a public lease IP address assigned.
Some low budget ISP's (internet Service Provider) are using CG-NAT for internet connections. CG-NAT does not affect regular Internet use; For example, most online video games work correctly, but when using port forwarding this will not work, this is the same for the VPN connection. So when the internet connection has a CG-NAT for internet connection, please contact the ISP for a solution.
Start setting up the VPN using the cloud.
https://cloud-eu.ruijienetworks.com/
Open the project from the Router that should work as the VPN server.
Select the Router.
Then click on eWeb because for this demo we are going to use the OpenVPN, and open de tunnel.
Click on the router.
Select Config, then OpenVPN.
- Enable the VPN
- Select the server type
- The server mode that we are using for this demo is Account & Certificate
- Enter the public IP address or DDNS
- Enter the IP address of the VLAN that the clients need to have access to
- Save
- Download the files that are needed to load in to the client setup
The next step is to create a client.
Go to the tap VPN Account
Then click on Add
Select the Service type from the one server type that has been created in the previous step.
Create a username and password for the client and click on OK
Now the server is ready to accept clients.
The Client Router
Open the eWeb from the client router, for this we are using the Reyee M18.
Then click on more
- Open the VPN tab and select OpenVPN
- Enable the service
- Select Client
- Select the service mode that is needed for the VPN Server
- Enter the username and password
- Open the openvpn file that was created from the server
- Save and the VPN connection is done with the server
Via the cloud, you have the option to check if the client is connected to the VPN server.