mauchede/tinc-configuration

该软件包已被 弃用 且不再维护。没有建议的替代软件包。

tinc-configuration 允许轻松管理 tinc

dev-master 2020-09-22 19:48 UTC

This package is not auto-updated.

Last update: 2020-10-23 06:22:23 UTC


README

tinc-configuration 允许轻松管理 tinc

⚠️ 该项目已停止维护。⚠️

SensioLabsInsight

安装

sudo curl -sLo /usr/local/bin/tinc-configuration "https://github.com/mauchede/tinc-configuration/raw/master/dist/tinc-configuration.phar"
sudo chmod +x /usr/local/bin/tinc-configuration

用法

# Initialize the configuration of the current host

tinc-configuration init --name nodeA --public-ip 1.1.1.1 --private-cidr 10.0.0.1/32

# Add an external host

cat > /tmp/host.pub << EOF
-----BEGIN RSA PUBLIC KEY-----
MIICCgKCAgEAuupuGT9OKdoUtGG1ouSJYS/9tV7+SVvRClixABWoiZVfMGoNolcs
...
-----END RSA PUBLIC KEY-----
EOF
tinc-configuration host:add --name nodeB --public-ip 2.2.2.2 --private-cidr 10.0.0.2 --public-key /tmp/host.pub

# Connect the current host to an external host

tinc-configuration connection:add --name nodeB

# Analyze the current host

tinc-configuration info

# Analyze an external host

tinc-configuration host:info --name nodeB

# Remove a connection between two hosts

tinc-configuration connection:remove --name nodeB

# Remove an external host

tinc-configuration host:remove --name nodeB

致谢

该项目受到 JensErat 的启发。

链接