{"id":27185196,"url":"https://github.com/codeesura/vpn-on-codespaces","last_synced_at":"2025-04-09T17:13:33.573Z","repository":{"id":253257053,"uuid":"842944129","full_name":"codeesura/vpn-on-codespaces","owner":"codeesura","description":"Set up a secure Tailscale VPN within a GitHub Codespace using this ready-to-go repository. Follow the guide to easily fork, configure, and access your Codespace from anywhere through a secure VPN connection.","archived":false,"fork":false,"pushed_at":"2024-08-15T13:46:53.000Z","size":974,"stargazers_count":7,"open_issues_count":0,"forks_count":36,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T17:12:48.417Z","etag":null,"topics":["cloud-development","developer-tools","devops","github","github-codespaces","remote-development","tailscale","vpn"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codeesura.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-15T12:53:18.000Z","updated_at":"2025-02-21T17:01:13.000Z","dependencies_parsed_at":"2024-08-15T15:19:52.499Z","dependency_job_id":"2d816339-8efc-47c8-a80a-56f1698e975e","html_url":"https://github.com/codeesura/vpn-on-codespaces","commit_stats":null,"previous_names":["codeesura/vpn-on-codespaces"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeesura%2Fvpn-on-codespaces","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeesura%2Fvpn-on-codespaces/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeesura%2Fvpn-on-codespaces/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeesura%2Fvpn-on-codespaces/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeesura","download_url":"https://codeload.github.com/codeesura/vpn-on-codespaces/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248074960,"owners_count":21043490,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloud-development","developer-tools","devops","github","github-codespaces","remote-development","tailscale","vpn"],"created_at":"2025-04-09T17:13:32.947Z","updated_at":"2025-04-09T17:13:33.568Z","avatar_url":"https://github.com/codeesura.png","language":"Shell","readme":"# Setting Up Tailscale VPN on GitHub Codespaces\n\nThis guide will walk you through the process of setting up a Tailscale VPN within a GitHub Codespace using **this specific repository**. It covers everything from forking the repository to configuring your Codespace with Tailscale.\n\nBy the end of this guide, you'll have a fully functional VPN running on your GitHub Codespace, accessible from anywhere.\n\n## Table of Contents\n1. [Prerequisites](#prerequisites)\n2. [Step 1: Forking the Repository](#step-1-forking-the-repository)\n3. [Step 2: Creating a GitHub Codespace](#step-2-creating-a-github-codespace)\n4. [Step 3: Running the Setup Script](#step-3-running-the-setup-script)\n5. [Step 4: Configuring Tailscale as an Exit Node](#step-4-configuring-tailscale-as-an-exit-node)\n6. [Conclusion](#conclusion)\n\n## Prerequisites\n\nBefore we start, ensure you have the following:\n\n- A GitHub account\n- Access to GitHub Codespaces (requires a GitHub account with Codespaces enabled)\n- [Tailscale](https://tailscale.com) account\n\n## Step 1: Forking the Repository\n\nTo create a Tailscale VPN in a Codespace, you'll need to fork **this repository**:\n\n1. Go to **[this repository](https://github.com/codeesura/vpn-on-codespaces)** that contains the necessary configuration files.\n2. Click on the **Fork** button at the top-right of the page.\n3. Choose your GitHub account as the destination for the fork.\n\n## Step 2: Creating a GitHub Codespace\n\nNow that you have the repository forked, you can create a Codespace:\n\n1. Navigate to your forked repository on GitHub.\n2. Click on the **Code** button and select **Codespaces**.\n3. Click **Create codespace on main**.\n\n![Creating a Codespace](./images/create-codespaces.png)\n\n5. Wait for the Codespace environment to initialize. This may take a few minutes.\n\n![Wait a Codespace](./images/load-codespaces.png)\n\n## Step 3: Running the Setup Script\n\nOnce your Codespace is ready, you'll need to run the provided setup script to configure Tailscale:\n\n1. Open the terminal in your Codespace.\n2. Grant execute permissions to the setup script:\n\n    ```bash\n    chmod +x ./show_tailscale_link.sh\n    ```\n\n3. Run the script using:\n\n    ```bash\n    ./show_tailscale_link.sh\n    ```\n\n4. The script will output a link. Follow the link to log in to your Tailscale account and register your machine.\n\n![Show Tailscale link](./images/shell.png)\n\n## Step 4: Configuring Tailscale as an Exit Node\n\nAfter logging in and registering your machine, follow these steps to set your Codespace as an exit node:\n\n1. Go to the [Tailscale admin panel](https://login.tailscale.com/admin/machines).\n2. Navigate to the `Machines` section and find your Codespace instance.\n3. Click the three dots (•••) next to your Codespace instance and select `Edit route settings`.\n\n![Edit route settings](./images/edit-route-settings.png)\n\n4. In the route settings menu, enable the `Use as exit node` option.\n\n![Use exit node](./images/use-exit-node.png)\n\n## Conclusion\n\nCongratulations! You've successfully set up a Tailscale VPN on your GitHub Codespace. This setup allows you to securely access your development environment from anywhere.\n\nFeel free to customize and extend this setup according to your needs. Happy coding!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeesura%2Fvpn-on-codespaces","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeesura%2Fvpn-on-codespaces","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeesura%2Fvpn-on-codespaces/lists"}