Coder Social home page Coder Social logo

tailscale-relay's Introduction

tailscale-relay

This is a docker image based on alpine:3 for setting up a tailscale instance in relay mode and exit node.

Prerequisites

  • Defined docker network via docker network create -d bridge <network name>
  • Subnet network via docker inspect <NETWORK ID> | grep Subnet
  • If you want, you can add multiple subnets using comma to seperate, eg. 172.23.0.0/16,10.0.0.0/24
  • Auth key from https://login.tailscale.com/admin/authkeys (e.g. tskey-123abc...)

Requirements

  • --cap-add=NET_ADMIN
  • Volume for persistent storage /tailscale

Use

Run the following docker run command.

  • AUTHKEY=tskey-123abc...
  • ROUTES=172.31.0.0/16
docker run -d \
    -v /tailscale \
    --cap-add=NET_ADMIN \
    --network=<docker_net> \
    -e "ROUTES=<docker_network>" \
    -e "AUTHKEY=<your_auth_key>" \
    ido1990/tailscale-docker:latest

This version should pull the lastest version of Tailscale for every deployment (weekly). You can use Watchtower to keep Tailscale updated.

Find this image on Docker Hub

tailscale-relay's People

Contributors

gniting avatar hojulian avatar ido1990 avatar snyk-bot avatar

Stargazers

 avatar  avatar  avatar  avatar

tailscale-relay's Issues

Zombie process

Running this container results in a zombie process on the host:
root 3026 0.0 0.0 0 0 ? Z 16:42 0:00 [tailscale] <defunct>

Here's the docker run command that I used:

docker run -d \                                                                                                       
        -v /tailscale \
        --cap-add=NET_ADMIN \
        --network=<my_docker_network_name> \
        -e "ROUTES=list_of_local_subnets_in_192.168.x.x_format" \
        -e "AUTHKEY=xxxxxxxxxxxxxx" \
        ido1990/tailscale-docker:latest

Interestingly, tailscale seems to be functional.

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.