Set up a OpenVPN access server with free resources on Oracle Cloud Infrastructure

A easier approach of setting the whole thing up

https://blogs.oracle.com/developers/post/launching-your-own-free-private-vpn-in-the-oracle-cloud#:~:text=Launching%20Your%20Own%20Free%20Private%20VPN%20In%20The,5%20Testing%20The%20VPN%20...%206%20Summary%20

Apply for a free Oracle Cloud free tier

Sign up at https://www.oracle.com/cloud/free/
When asked to select a region, pick up that states "always free".
After you sign up, sign in at https://www.oracle.com/cloud/sign-in.html

Create a new virtual machine instance

After log in, click on the hamburger icon on the top left. Then select "Compute" -> "Instances".


Click on the "Create Instance" button.


In the subsequent screen, name the virtual machine, select an image (recommend: Ubuntu 16.04), select a shape (select a always free one if needed), upload your ssh public key. Then click the "Create" button to create the VM.


In the next page, wait until you see the public IP of the virtual machine.


Open necessary network ports

Click on the hamburger icon on the top left. Then select "Networking" -> "Virtual Cloud Networks".


Click on the Victual Cloud Networks (VCN) entry in the table. The name of your VCN may be different from what you see here.


In the subsequent screen, select "Security List" under the Resource section. Then click on the Default Security List that you see.



In the next screen, click on "Add Ingress Rules".


Use the pop-up window to create the following ingress rules.



The virtual machine is now ready for OpenVPN install.

Install OpenVPN

ssh into the virtual machine.

Follow the instruction at https://openvpn.net/download-open-vpn/ to install OpenVPN access server.

For Ubuntu 16.04, the commands to run are:

sudo su -

apt update && apt -y install ca-certificates wget net-tools gnupg

wget -qO - https://as-repository.openvpn.net/as-repo-public.gpg | apt-key add -

echo "deb [arch=amd64] http://as-repository.openvpn.net/as/debian xenial main">/etc/apt/sources.list.d/openvpn-as-repo.list

apt update && apt -y install openvpn-as

Then run the following to set the initial administrative password.

passwd openvpn

Use your browser to point to https://:943/admin. Use the above openvpn user credential that you just set to log in. Then from the left navigation bar, select "Network Settings". Update the "Hostname or IP Address" field to the public ip of the virtual machine.


After the change, scroll to the end of the page and click on the "Save Changes" button.

From the left navigation bar, select "VPN Settings". Update the "Hostname or IP Address" field to the public ip of the virtual machine.


Make sure you have the settings highlighted below.


After the change, scroll to the end of the page and click on the "Save Changes" button. Then scroll back to the top and select "Update Running Server".

Download your VPN profile and install your client.

Use your browser to point to https://:943. Log in and then you will have the instruction on installing the VPN client and the connection profile.

References

https://openvpn.net/oracle-quick-start-guide/
https://openvpn.net/download-open-vpn/
https://www.ecourse.org/news.asp?which=1647

Comments

Popular posts from this blog

Using PlayStation 1 Densha de Go controller on emulators

Using PS1/PC Densha de Go! controller SLPH-00051/TCPP-20001/DGOC-44U on PS4/Switch Densha de Go!!

Play octoshape stream on windows with VLC player