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.7.0.tar.gz (5.4 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.7.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tailctx-0.7.0.tar.gz
Algorithm Hash digest
SHA256 8b6ed418a82ad37989d6036a54086b0297a01c41b740e483349f4804f00c5edf
MD5 458024ffe046b82c5c72c330bfaa5a20
BLAKE2b-256 c2df72deaa24258fc8a223bc308f4d979dc14c48801d1805d90a7cfa8cfb6f65

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tailctx-0.7.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.9.9-arch1-1

File hashes

Hashes for tailctx-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 deecaf1a6fb137d46bb0fcd720a606fcf253f6ea9cbd25e0a602507fc8b763ed
MD5 68136782eed70db7ba298a03ebde89e1
BLAKE2b-256 86685052f00135aa2574eca6047ff7e8c4bcf550fe16b10f1fe9edcc85bc49c2

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