Giter Club home page Giter Club logo

tailscale-balena-block's Introduction

hslatman/tailscale-balena-block

Runs a Tailscale node on a Balena device

Setup and configuration

Use this as standalone with the button below:

tailscale block deploy with balena

Or add the following service to your docker-compose.yml:

volumes:
  tailscale-state: {}

services:
  tailscale:
    image: bh.cr/hslatman/herman/tailscale-aarch64
    restart: always
    network_mode: host
    environment:
      - TAILSCALE_KEY: <YOUR_TAILSCALE_KEY>
      - TAILSCALE_IP: <BOOLEAN>
      - TAILSCALE_TAGS: <CUSTOM_TAGS>
    volumes:
      - tailscale-state:/tailscale

You'll need to provide a valid Auth Key to the tailscale service in the TAILSCALE_KEY variable. An Auth Key can be created in the Tailscale Dashboard. Take note of the properties you specify when creating a new key, if you don't specify Pre-authorized you will have to manually login via the console.

If TAILSCALE_IP is set to true, then the Tailscale IP address of the device will be visible in the balenaCloud dashboard.

If TAILSCALE_TAGS is set, --advertise-tags=${TAILSCALE_TAGS} is passed. Make sure to define the tags first.

Tailscale

Tailscale is described as a secure network that just works. It uses WireGuard to tunnel traffic between hosts.

(Potential) Improvements

  • Provide Docker image for the block
  • Be smarter when TAILSCALE_KEY is not yet set in Balena
  • Provide additional configuration options
    • subnet routing
    • ...
  • Expose some tags in Balena?
  • Support kernel networking (instead of just userspace; also see hslatman/tailscale-balena-rpi)
  • Some easy way for checking that Tailscale tunnel works?
  • A way to refresh/reauth tailscaled state on command?
  • Deploy to multi-arch fleets with GitHub actions

Legal

WireGuard is a registered trademark of Jason A. Donenfeld.

tailscale-balena-block's People

Contributors

bucknalla avatar hslatman avatar robertgzr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.