Skip to main content

Tailscale Context Manager

Project description

tailctx - Tailscale context manager

tailctx is a tool to help manage several environment for your Tailscale VPNs.

Traditionally, Tailscale only supports connecting to one login server, requiring to delete the state in order to connect to another one, which makes it unpractical when having several separate corporate environments, or a corporate and personal VPNS. tailctx runs tailscaled with a separate state directory, stored in the user's home directory, in order to persist the distinct states.

Once a context is launched, it can be used and configured as any other Tailscale connection, though the tailscale command.

Install

# Install from HEAD
$ pip install --force-reinstall git+https://github.com/apognu/tailctx.git

Usage

$ sudo tailctx start personal
INFO: creating new tailscale context `personal`
$ sudo tailscale up --login-server=...
$ sudo tailctx stop

$ sudo tailctx start personal
INFO: using existing tailscale context `personal`

$ tailctx status
State: connected
Context: personal

Hostname: hostname
DNS name: hostname.ns.example.com
IP address: 100.64.0.100

Hosts:

        Hostname       DNS name      IP address                            Exitable
       otherhost      100.64.0.3    otherhost.ns.example.com              ✓

$ sudo tailctx exit -s otherhost
INFO: exit node was set as `otherhost`

$ tailctx status
State: connected
Context: personal

Hostname: hostname
DNS name: hostname.ns.example.com
IP address: 100.64.0.100

Hosts:

        Hostname       DNS name      IP address                            Exitable
   🌐  otherhost      100.64.0.3    otherhost.ns.example.com              

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tailctx-0.8.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tailctx-0.8.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file tailctx-0.8.0.tar.gz.

File metadata

  • Download URL: tailctx-0.8.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.11.9-arch1-1

File hashes

Hashes for tailctx-0.8.0.tar.gz
Algorithm Hash digest
SHA256 d130fbf86864a040b6a4f4af6d3ee3efd63c7f119d8b5dde54cdef3fd565ab54
MD5 56a2d97428ac45f531aa94e98813ed15
BLAKE2b-256 586ae912ac0dec848bbb9cdc20080eaee00386fdc65fa2e8e6ef5e7089f988f3

See more details on using hashes here.

File details

Details for the file tailctx-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: tailctx-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.11.9-arch1-1

File hashes

Hashes for tailctx-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fd00f919676cef0cf005470919ceec15e280b6c3af0ed65fdb2ee34963df79b4
MD5 b98c5d587a64b3ffe3815a2e6866c10a
BLAKE2b-256 70e661942f5e5bfac20cc92e608c35e2da234b308669ad9657deec75c6f6380a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page