Secure Your Infrastructure with OpenVPN
OpenVPN Setup
When it comes to security, you can never be sure, but you can make a few steps that will strengthen your overall protection and the ability to easier access SSH servers with all of your team, for example whitelisting the OpenVPN IP address and only, really just allow that address to able to access your server. This has been used by many IT companies such as hosting providers or software developers, etc.
Today I will show you how you can setup your very own and quickly in no time! For the best experience, I recommend you to use VPS providers that allows locations such as Switzerland. Vultr is a good option here, even with hourly payments.
Update all of your software and install depedencies
sudo apt update && sudo apt install python3 python3-netaddr python-netaddr-docs
Download OpenVPN install script and add the executive permissions
sudo curl -O https://raw.githubusercontent.com/angristan/openvpn-install/master/openvpn-install.sh
sudo chmod +x openvpn-install.sh
Run the script
sudo bash openvpn-install.sh
It will show the steps such as these:
VERY IMPORTANT: Make sure to open ports in your firewall!
Success
If all is good, you will have a created configuration file that you can grab from /home/root/xxx.ovpn
Simply download it and store it in your second drive partition such as D: or Document Folder.
Setup Windows
- Now get OpenVPN client.
For 64 bit Windows:?https://swupdate.openvpn.org/community/releases/OpenVPN-2.5.2-I601-amd64.msi
For 32 Bit Windows:?https://swupdate.openvpn.org/community/releases/OpenVPN-2.5.2-I601-x86.msi
2. Put your profile into the directory:
C:\Users..YourUsername..\OpenVPN\config
3. Right click on it and import it.
4. Start the OpenVPN client if you haven't already. Now on the taskbar right click on the client and from the profile simply click Connect.
I help startups hire great remote engineers | Founder @ Remote Crew
2 å¹´Great article - thanks for sharing Marcell Csendes