Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/spookyuser/tailscale-vpn


https://github.com/spookyuser/tailscale-vpn

Last synced: 18 days ago
JSON representation

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/)