Host personal VPN on Railway using Tailscale
-
To get started, you should create an account on tailscale, if you already have an account skip to next step
-
Go to you tailscale admin console settings then to keys
-
Click on 'Generate auth key ...'
-
Give you key a description then click 'Generate key' when you are finished
Remember to take a note of the key because you'll see it only once
-
Go to railway and paste in the key in TAILSCALE_AUTHKEY variable
-
Deploy!
-
Go to your tailscale machines and approve railway-app as an exit node
-
Disable key expiry for the machine you just deployed
-
Use this command to connect to your VPN
tailscale up --exit-node railway-app # or replace railway-app with your hostname