Skip to content

Instantly share code, notes, and snippets.

@format37
Last active October 3, 2023 11:05
Show Gist options
  • Save format37/1d2e2794b77a5ccb3a3847c8c817cbb0 to your computer and use it in GitHub Desktop.
Save format37/1d2e2794b77a5ccb3a3847c8c817cbb0 to your computer and use it in GitHub Desktop.
google cloud vpn server

To pay via credit card:

Add google cloud vm instance. You can select preemptible machine with unbalanced disc, to low costing, at $2. Don't forget to select required region.
Set static ip adress
Add firewall rule: allow TCP, UDP: 943, 1194
Connect over ssh, using google cloud interface
Check your linux release, and follow instructions to install openvpn: https://openvpn.net/vpn-software-packages/
After install, in terminal will appears the admin ui link, like: Admin UI: https://10.128.0.4:943/admin
There will be also login openvpn and password
Replace local ip to server external static ip and open in web browser Login page.

To pay via bitcoin:

bitlaunch.io
Get a machine for $10/month. Connect over ssh. Install openvpn: https://openvpn.net/vpn-software-packages/

Configuration:

  • Network Settings / Hostname or IP Address: server external static ip address
  • VPN settings / Should VPN clients have access to private subnets (non-public networks on the server side)?: No
  • VPN settings / Have clients use specific DNS servers: Yes
  • VPN settings / Primary DNS Server: 8.8.8.8
  • User management / User permissions / add new user, with auto-login
  • User management / Profiles / add user profile and download ovpn file
  • Connect vpn and check does all works fine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment