Skip to content

Andrew-Bekhiet/railway_tailscale_vpn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Railway Tailscale VPN

Overview

Host personal VPN on Railway using Tailscale

Deploy on Railway

How to setup

  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 railway and paste in the key in TAILSCALE_AUTHKEY variable

  6. Deploy!

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

    approve_exit_node.png

  8. Disable key expiry for the machine you just deployed

    disable_key_expiry.png

  9. Use this command to connect to your VPN

    tailscale up --exit-node railway-app # or replace railway-app with your hostname

More Info

Tailscale

Tailscale Exit nodes

Using Tailscale Auth Keys