Category5.TV Community Forum
OpenVPN Server on NemsLinux. - Printable Version

+- Category5.TV Community Forum (https://forum.category5.tv)
+-- Forum: NEMS - Nagios Enterprise Monitoring Server (https://forum.category5.tv/forum-8.html)
+--- Forum: User Contributions (https://forum.category5.tv/forum-44.html)
+--- Thread: OpenVPN Server on NemsLinux. (/thread-501.html)



OpenVPN Server on NemsLinux. - Toxic - 04-29-2019

I have managed to install and OpenVPN via a script from GitHub. This allows your NemsLinux Server to become a OpenVPN Server and allow remote access via VPN to your Network devices.

The script and install instructions are available here:


https://github.com/Nyr/openvpn-install

run the command: 

Code:
Code:
wget https://git.io/vpn -O openvpn-install.sh && bash openvpn-install.sh


and then follow the prompts. The script will create a *.OVPN file in the /root folder.  Export this OVPN file to your client device.  

Whatever port you have selected - 1194 UDP being the Default port - you will need to port forward this port number to your NEMSLinux IP address from your WAN interface on the Router


on your client PC (remote site)  you need to install OpenVPN Client. https://openvpn.net/community-downloads/

once the client is installed, import the OVPN file using the client software. You can then connect to the NEMSLinux Server from your client over a Secure VPN connection.

I think this script will be an excellent feature to be included in NEMSlinux.


RE: OpenVPN Server on NemsLinux. - andrespq - 05-02-2019

i tried to use it but the network is hardcoded to 10.8.0.x/24 and creates several iptable rules. Using the script like this only grants access to the local machine and not to the whole network.

Also tried this one http://www.pivpn.io/ but could not  run the config .