https://github.com/andrew-bekhiet/railway_tailscale_vpn
Host personal VPN on Railway using Tailscale
https://github.com/andrew-bekhiet/railway_tailscale_vpn
railway tailscale tailscaled vpn-server
Last synced: 2 months ago
JSON representation
Host personal VPN on Railway using Tailscale
- Host: GitHub
- URL: https://github.com/andrew-bekhiet/railway_tailscale_vpn
- Owner: Andrew-Bekhiet
- License: apache-2.0
- Created: 2023-02-10T15:00:14.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-10-27T21:32:20.000Z (8 months ago)
- Last Synced: 2025-04-09T17:14:30.638Z (2 months ago)
- Topics: railway, tailscale, tailscaled, vpn-server
- Language: Dockerfile
- Homepage: https://railway.app/new/template/uIBpGp?referralCode=androidquartz
- Size: 228 KB
- Stars: 44
- Watchers: 1
- Forks: 17
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Railway Tailscale VPN
## Overview
Host personal VPN on Railway using Tailscale
[](https://railway.app/new/template/uIBpGp?referralCode=androidquartz)
## How to setup
1. To get started, you should create an account on [tailscale](https://tailscale.com), if you already have an account skip to next step
2. Go to you tailscale admin console settings then to [keys](https://login.tailscale.com/admin/settings/keys)
3. Click on 'Generate auth key ...'

4. 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
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

8. Disable key expiry for the machine you just deployed

9. Use this command to connect to your VPN
```sh
tailscale up --exit-node railway-app # or replace railway-app with your hostname
```## More Info
[Tailscale](https://tailscale.com/)
[Tailscale Exit nodes](https://tailscale.com/kb/1103/exit-nodes/)
[Using Tailscale Auth Keys](https://tailscale.com/kb/1085/auth-keys/)