Skip to content

canonical/tailscale-snap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tailscale snap

This repository contains the snap package sources for Tailscale.

For user documentation for the snap, please see Tailscale on the Snap Store. See below for developer documentation.

Local development

You can build the snap locally with:

snapcraft --use-lxd

Then install it (dangerous mode is required for locally built snaps):

sudo snap install --dangerous ./tailscale_*.snap

In dangerous mode, these interfaces are not automatically connected, so they must be manually connected:

sudo snap connect tailscale:firewall-control
sudo snap connect tailscale:network-control
sudo snap connect tailscale:sys-devices-virtual-dmi-ids

Once the interfaces are connected, then you must restart the tailscaled service (it will have failed without the interfaces):

sudo snap restart tailscale

Now you can manage tailscale with the tailscale command:

tailscale status

Integration with other snaps

Other snaps can access tailscaled via its unix socket through the tailscale:socket slot. This slot exposes a content interface, which will be a directory containing the tailscaled.sock socket file.

For example, if there is a snap called derper, and it has this plug definition:

plugs:
  tailscale-socket:
    interface: content
    content: socket-directory
    target: $SNAP_COMMON/tailscale-socket

Then you can integrate derper with tailscale like this:

$ sudo snap connect derper:tailscale-socket tailscale:socket

And the tailscaled socket will be available to the derper snap as $SNAP_COMMON/tailscale-socket/tailscaled.sock.

License

This packaging repository is released under the BSD 3-Clause "New" or "Revised" license.

Tailscale is released under the BSD 3-Clause "New" or "Revised" license. Please see the upstream repository for more information: https://github.com/tailscale/tailscale/

About

Snap package for Tailscale

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages