Install ZeroTier on OpenWRT: Difference between revisions
Created page with "== Prequsites == == Install == 1. Install ZeroTier: <syntaxhighlight lang="bash>" opkg update opkg install zerotier-cli </syntaxhighlight>" |
No edit summary |
||
| (5 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
[[Category:OpenWRT]] | |||
== Prequsites == | == Prequsites == | ||
| Line 6: | Line 8: | ||
1. Install ZeroTier: | 1. Install ZeroTier: | ||
<syntaxhighlight lang="bash> | <syntaxhighlight lang="bash"> | ||
opkg update | opkg update | ||
opkg install zerotier-cli | opkg install zerotier-cli | ||
</syntaxhighlight> | |||
2. Edit configuration: | |||
Add network id(s) | |||
<syntaxhighlight lang="bash"> | |||
cat > /etc/config/zerotier << EOF | |||
config zerotier 'zt_config' | |||
option enabled '1' | |||
list join 'id1' | |||
#list join 'id2' | |||
EOF | |||
</syntaxhighlight> | |||
3. Restart service: | |||
<syntaxhighlight lang="bash"> | |||
uci commit zerotier | |||
service zerotier restart | |||
</syntaxhighlight> | |||
== Debug == | |||
<syntaxhighlight lang="bash"> | |||
zerotier-one -d | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Latest revision as of 11:49, 29 August 2024
Prequsites
Install
1. Install ZeroTier:
opkg update
opkg install zerotier-cli
2. Edit configuration:
Add network id(s)
cat > /etc/config/zerotier << EOF
config zerotier 'zt_config'
option enabled '1'
list join 'id1'
#list join 'id2'
EOF
3. Restart service:
uci commit zerotier
service zerotier restart
Debug
zerotier-one -d