Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/spookyuser/tailscale-vpn
https://github.com/spookyuser/tailscale-vpn
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/spookyuser/tailscale-vpn
- Owner: spookyuser
- License: apache-2.0
- Created: 2023-12-08T13:00:30.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-08T13:00:31.000Z (about 1 year ago)
- Last Synced: 2024-12-15T22:44:09.112Z (19 days ago)
- Language: Dockerfile
- Size: 209 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- 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
[![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/new/template/uIBpGp?referralCode=KgmRt8)
## 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 ...'
![admin_console_keys.png](./readme-screenshots/admin_console_keys.png)
4. Give you key a description then click 'Generate key' when you are finished
![generating_auth_key.png](./readme-screenshots/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](./readme-screenshots/approve_exit_node.png)
8. Disable key expiry for the machine you just deployed
![disable_key_expiry.png](./readme-screenshots/disable_key_expiry.png)
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/)