Skip to content

Maxagl/OpenvpnTutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 

Repository files navigation

OpenvpnTutorial

This is a simple repository about how I learn Openvpn on a Ubuntu Server provided by Google Clound.

One reason i created this is to help myself remember the flow. Besides, I want to help those who struggle
with Openvpn and Clound Server.

Google Clound

Google Clound is very strong but complicated. First time I use Google Clound, I don't know what to do.

  1. When we create the instance, we need to have Allow full access to all Cloud APIs in Identity and API access
    this will help us transfer file from remote to local.
  2. remember to change the fire wall rule!!!.important

Server setting

  1. change to the root user sudo su root

  2. change the root password passwd

  3. change the user password using root user passwd username

this will save us in the future, since google clound have no default password. but sometimes we need password to do sudo action.

  1. install wget sudo apt install wget

Installation

  1. Download the shell script provided by Nyr wget https://git.io/vpn -O openvpn-install.sh && bash openvpn-install.sh.

  2. Change script into excutable sudo chmod +x openvpn-install.sh

  3. Run the script using sudo sudo ./openvpn-install.sh

It is ok to use the default setting except the name for the installation.

  1. Change to the root user su root.

  2. Using cd ~ change to the root folder

  3. Usingls -l, you will find the file name.ovpn and this file is what we need to transfer to the local.

Tranfer file from server to local

  1. Create a bucket in clound storage in the Storage part.

  2. Using the gsutil cp name.ovpn gs://your-bucket

  3. Download the file in the bucket to you local computer.

Link to VPN

  1. Download Openvpn client here.
  2. Drag the name.ovpn to the client.

Here we done

About

A tutorial using Openvpn and Google clound server to build VPN.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors