OpenVPN
The docs cover the OpenVPN Clients installation.
Introduction
We are using various VPNs to connect to the private remote network and avoid using the public network.
VPNs that we use here :
- OpenVPN (supported by Windows, Mac, Linux)
- sshuttle (supported by Mac, Linux)
What is OpenVPN
OpenVPN is an open source connection protocol used to facilitate a secure tunnel between two points in a network.
When you connect to the internet, particularly on a public network, there is a risk involved in transmitting sensitive data across the network. This is why it’s considered a best practice to never log into your bank while on public WiFi.
when you connect to a Virtual Private Network, or “VPN”, using the OpenVPN protocol, your data is secured behind a strong encryption.
For Developers
Steps to be followed by the Developers.
- OpenVPN installation steps
- MacOS
- Linux
- Windows
wget Link
sudo sh setupVPNclient.sh user.ovpn.
Replace user.ovpn file with your own .ovpn file.
If you don’t have the .ovpn file, request the same from DevOps Team.
Verify by running the following command
curl ipInfo.io
IP should be 3.108.18.0, If not then contact DevOps Team.
Press ctrl + c on the terminal to exit the prompt.
Now, To start/stop the client
- sudo systemctl start openvpn client.service
- sudo systemctl stop openvpn client.service
Download the client from this link
Install
- Open App
- Drag and drop your .ovpn file to the application icon in the menu bar.
- If you don’t have the .ovpn file, request the same from DevOps Team.
Download and Install the client from this Link
Copy your .ovpn file to the following location:
C:\Program Files\OpenVPN\config\
If you don’t have the .ovpn file, request the same from DevOps Team.
Launch the OpenVPN client, it should get connected.
For DevOps
Steps to be followed by the DevOps team.
- Log in to the OpenVPN server
- Go to the path
/root/openVpn. you will find the scripts required to provision the access. - Use this command to generate the .ovpn file of the user
./openvpn-install_auto.sh ori-username. For example : ./openvpn-install_auto.sh ori-likith-venkat- The .ovpn file will be generated at the location
/root/openVpn/openVpnClients. - Copy this File into the location by using the command
cp user.ovpn /home/ubuntu/clients/. - Share this
.ovpnfile to the user as per convenient.