Skip to content

Latest commit

 

History

History
134 lines (68 loc) · 5.83 KB

GCEEnglish.md

File metadata and controls

134 lines (68 loc) · 5.83 KB

Requirements

  • A Google accounts
  • A payment card (credit card/debit card that support online transaction without 3-D Secure)

Fees

  • Free for 90 days, assuming total traffic is less than ~1.9 TB and only one VM is active

  • If free credit run out, all VMs will immediately shutdown. No additional charges until the account is upgraded to paid account (allowing charges)

  • With paid account, one VM in limited region in US can be run forever for free, but the free bandwidth is only 1 GB per month, excluding traffic to China and Australia (as in, there's no free bandwidth to China and Australia), with up to 0.12 USD per GB afterwards

Cloud Engine account creation

Browse to https://cloud.google.com and click Get Started For Free. If you already have a Cloud Engine project, skip to VM Creation step.


Select the appropriate country, this probably must match the payment card you're going to use


Adjust the account type and tax information.


Unless you already add a card payment to your Google Account, insert your card number and start the trial


Google will make a test charge (less than 1 USD) and revert it almost immediately. Unless you upgrade, Google will not charge you afterwards even if you ran out your complimentary 300 USD credit or one year has passed. Your VM will simply shut down after one year, with no additional charge.

VM Creation

Go to https://console.cloud.google.com/compute/instances

If you don't already have a project, follow the wizard shown to create your first project. Once you have a project, click Create


Open http://www.gcping.com/ on new tab, let it run until completed (the icon should change into Play triangle). Note the top region shown, except global.


On the VM creation, choose the region according to GCPing result. Change the machine type to f1-micro


Below, remember to check the Allow HTTPS Traffic.


Expand the Management, security, disks, networking, sole tenancy


Switch to Networking tab and click the pencil icon under Network interfaces


Under External IP, click the Ephemeral, and change it to Create IP Address


Name the address and Reserve it.


Change IP Forwarding to On, then click Done


Click Create on the bottom.


Installing OpenVPN

Check the list of VM you have on https://console.cloud.google.com/compute/instances. Take note on the IP right beside the SSH button, then click on the SSH button


A new window will be opened. Type sudo su and press Enter


Copy and paste the following line (to paste, click on the prompt, then Ctrl-V), then press Enter

wget git.io/nenengce -O nenengce.sh && chmod +x nenengce.sh && ./nenengce.sh

Note the path shown after "the configuration file is available". You will create multiple client profile later, since the same profile can't access your VPN simultaneously.


Copy paste the following line

bash openvpn-install.sh

then press enter. You should be greeted with the following screen


Follow the instruction to create new user. Ideally every device you own will use their own profile, because if, say your phone and tablet use the same profile, the your phone will automatically disconnect when your tablet connect, and vice versa.


Repeat the previous step to create additional user for each device you need. The server you've just made in theory should support at least dozens of simultaneous connections. After you're done, you'll need to download the profiles.

Deploying OpenVPN on devices

Click gear icon on the top right, and select Download file


Enter the exact path of each profile you need, and download them


Distribute the .ovpn file to each corresponding device. On each device, install the OpenVPN client. Windows, Mac OS, Linux, Android and iOS are officially supported.

Launch the OpenVPN app on your device, then import the profile file before first use.


You can change the profile name, probably useful if you want to use multiple server later.


The profile list will show the status of each profile you have. Connect or disconnect by toggling the switch.


Verify by googling "What is my IP" or browsing sites that used to be blocked (if it's still blocked, try restarting the browser)