2021-11-09 18:33:11 +00:00
|
|
|
name: zerotier
|
2021-11-26 18:59:42 +00:00
|
|
|
summary: Securely connect any device, anywhere.
|
2021-11-09 18:33:11 +00:00
|
|
|
description: |
|
2021-11-26 18:59:42 +00:00
|
|
|
|
|
|
|
ZeroTier is a software-based managed Ethernet switch for planet Earth. Use it to connect your
|
|
|
|
desktop clients, servers, phones, NAS, or even individual applications (using our SDK).
|
|
|
|
|
|
|
|
This snap contains ZeroTier One, a service that provides ZeroTier network connectivity and
|
|
|
|
makes joining virtual networks as easy as joining IRC or Slack channels. Apps for Android
|
|
|
|
and iOS are available for free in the Google Play and Apple app stores.
|
|
|
|
|
|
|
|
ZeroTier eliminates the LAN/WAN distinction and makes VPNs, tunnels, proxies, and other kludges
|
|
|
|
arising from the inflexible nature of physical networks obsolete. Everything is encrypted
|
|
|
|
end-to-end and traffic takes the most direct (peer to peer) path available.
|
|
|
|
|
2021-11-30 03:44:34 +00:00
|
|
|
Install (be sure to use sudo)
|
2021-11-26 18:59:42 +00:00
|
|
|
|
2021-11-09 18:33:11 +00:00
|
|
|
sudo snap install zerotier
|
2021-11-26 18:59:42 +00:00
|
|
|
|
2021-11-09 18:33:11 +00:00
|
|
|
Join your network
|
2021-11-26 18:59:42 +00:00
|
|
|
|
2021-11-19 16:16:14 +00:00
|
|
|
sudo zerotier join <nwid>
|
|
|
|
sudo zerotier status
|
2021-11-26 18:59:42 +00:00
|
|
|
|
2021-11-09 18:33:11 +00:00
|
|
|
Approve your new node in ZeroTier Central (https://my.zerotier.com)! Welcome online!
|
2021-11-19 16:16:14 +00:00
|
|
|
|
2021-11-09 18:33:11 +00:00
|
|
|
adopt-info: one
|
|
|
|
confinement: strict
|
|
|
|
grade: stable
|
|
|
|
base: core18
|
|
|
|
|
|
|
|
apps:
|
|
|
|
one:
|
|
|
|
# Add -U to prevent attempting to drop privileges since snaps have their
|
|
|
|
# own containment mechanism. Otherwise, if a user named "zerotier-one"
|
|
|
|
# exists on the system, the setgid or related calls will fail.
|
|
|
|
command: usr/sbin/zerotier-one -U
|
|
|
|
daemon: simple
|
|
|
|
plugs:
|
|
|
|
- network
|
|
|
|
- network-bind
|
|
|
|
- network-control
|
|
|
|
|
2021-11-19 16:16:14 +00:00
|
|
|
# For backwards compatibility with old package (e.g. zerotier.cli)
|
|
|
|
# Should be removed someday
|
2021-11-09 18:33:11 +00:00
|
|
|
cli:
|
|
|
|
command: usr/sbin/zerotier-cli
|
|
|
|
plugs:
|
|
|
|
- network
|
|
|
|
|
2021-11-19 16:16:14 +00:00
|
|
|
zerotier:
|
|
|
|
command: usr/sbin/zerotier-cli
|
|
|
|
plugs:
|
|
|
|
- network
|
|
|
|
|
2021-11-09 18:33:11 +00:00
|
|
|
idtool:
|
|
|
|
command: usr/sbin/zerotier-idtool
|
|
|
|
plugs:
|
|
|
|
- network
|
|
|
|
|
|
|
|
layout:
|
|
|
|
/var/lib/zerotier-one:
|
|
|
|
bind: $SNAP_COMMON
|
|
|
|
|
|
|
|
parts:
|
|
|
|
one:
|
|
|
|
plugin: make
|
|
|
|
source: .
|
|
|
|
build-packages:
|
|
|
|
- build-essential
|
|
|
|
- libc++-dev
|
|
|
|
make-parameters:
|
|
|
|
- CXX=g++
|
|
|
|
filesets:
|
|
|
|
binaries:
|
|
|
|
- usr/sbin/zerotier-one
|
|
|
|
- usr/sbin/zerotier-cli
|
|
|
|
- usr/sbin/zerotier-idtool
|
|
|
|
prime:
|
|
|
|
- $binaries
|
|
|
|
override-build: |
|
|
|
|
snapcraftctl build
|
|
|
|
# Grab the version string from the newly-compiled binary.
|
|
|
|
snapcraftctl set-version "$(./zerotier-one -v)"
|
|
|
|
slots:
|
|
|
|
zerotier-control:
|
|
|
|
interface: content
|
|
|
|
read:
|
2021-11-10 22:15:41 +00:00
|
|
|
- $SNAP_COMMON
|