Skip to content

Tailscale VPN on PaaS hostings such as railway, render, back4app and etc.

License

Notifications You must be signed in to change notification settings

Anarchist-Network/PaaS-VPN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tailscale VPN on PaaS

Tailscale VPN on PaaS hostings such as railway, render, back4app and etc.

[!] Please, read this

This repository was created as a fork of https://github.com/render-examples/tailscale/ and https://github.com/Andrew-Bekhiet/railway_tailscale_vpn

Setup manually

  1. To get started, you should create an account on tailscale, if you already have an account skip to next step

  2. Go to you tailscale admin console settings then to keys

  3. Click on 'Generate auth key ...'

    admin_console_keys.png

  4. Give you key a description then click 'Generate key' when you are finished

    generating_auth_key.png

    Remember to take a note of the key because you'll see it only once

  5. Go to render, choose region and set Docker as a language

    region.png

  6. Set free instance type

    instance.png

  7. create TAILSCALE_AUTHKEY variable with your authkey as a value in enviroment variables and deploy.

    variable.png

  8. Go to your tailscale machines and approve railway-app as an exit node

    approve_exit_node.png

  9. Disable key expiry for the machine you just deployed

    disable_key_expiry.png

  10. Click copy to clipboard, then create a monitor on uptimerobot to keep your service alive 24/7.

    url.png


[!] This method works with back4app and other PaaS like render too.