Skip to content

Instantly share code, notes, and snippets.

View IvanIFChen's full-sized avatar

Ivan Chen IvanIFChen

View GitHub Profile

Setup GCP Compute Instance for Personal VPN Access

What You'll Get

We will be using a docker image from linuxserver that will have openvpn-as (OpenVPN Access Server) ready as our base container, OpenVPN is a commercial software that requires licensing for more than 2 active connections. Thus this is only recommended for personal use.

Additionally, Google Cloud charges not only the compute hours but also egress network traffic. While compute hours can make use of the free-tier f1-micro instance, egree network traffic will be charged. If you are using 10s of GiB of traffic a month, you are better of purchasing a VPN service, though you do not "own" your data that way.

Creating VM Instance on GCP

Navigate to https://console.cloud.google.com and create a new compute instance with following configurations:

Setting up John the Ripper on GCP with OpenCL Guide

Creating the VM instance on GCP

Navigate to https://console.cloud.google.com and create a new instance with these following configurations:

disclaimer: I am only using this for a class assignment therefore only cracking some simple hashes, I am maxing out on everything even if I don't need them.

  • Max CPU cores
  • Max RAM
  • At least 1 GPU
  • Boot disk: "Intel® optimized Deep Learning Image: Base m19 (with Intel® MKL and CUDA 10.0)" This will have CUDA pre-configured.

OpenVPN on Router Guide

This is a guide to setup OpenVPN on an ASUS router using its buit in OpenVPN server feature.

We will be using:

  • ASUS RT-N66U router
  • Tunnelblick (a GPL licensed OpenVPN mac client)

Install Tunnelblick

https://tunnelblick.net/downloads.html

DNS-over-TLS-Guide

This is a guide to use the new cloudflare's 1.1.1.1 DNS resolver on mac, using DNS over TLS on standard port 853.

Note: This is different from the guide on https://1.1.1.1/, simply setting dns server does not provide TLS security for the initial request to the DNS resolver (so your roommates using your wifi can still see what you are browsing!). In order to have the best privacy out of cloudflare's 1.1.1.1, we have to send the request over port 853.

Install Stubby

brew install stubby