Openvpn configure
#OPENVPN CONFIGURE HOW TO#
You can go with NO on all 3 if you’re not sure or not familiar how to set it and configure. Encryption: Here we have 3 prompts for encryption settings. For compression go with NO which is set by default:Ħ. That can be almost any but you can set Google or OpenDNS(option 8 or 9). DNS resolver and compression: OpenVPN requires a DNS resolver to use. OpenVPN by default uses 1194 port but you can also set a custom port as well:ĥ. IPv6 and Port number: The next prompts are going to be – do you want to enable IPv6 support, which is set to NO by default and you leave it as is and which port to use for OpenVPN to establishes connection. This is the most common case if you use a VM from a Cloud provider or you need to connect remotely to another office which is placed on a different location.Ĥ. On the first prompt, it’ll ask you – is your Ubuntu machine behind NAT and to provide it the Public IP address of the server: Public and private IP addresses: The script will start the installation process with a series of questions following with a prompt and your response, in order to configure the OpenVPN as soon as it installs it. Make it executable and run it: chmod +x openvpn-install.shģ.
#OPENVPN CONFIGURE INSTALL#
If by any chance, you do not have curl tool installed, you can install by running the following command: sudo apt install curlĢ. Setup OpenVPN server on Ubuntu OpenVPN server installation The process can be looked at this post – LINK. For the simplicity and ease of setup we’re using the angristan’s script(big thanks to him for sharing the script).Īnother interesting method of deploying OpenVPN server is via Docker container. The Installation process done manually is not difficult, it actually requires many steps and can be time consuming(especially if you miss-configured a step which can consume more time by troubleshooting).