mwarning / zerotier-openwrt

A OpenWrt package for ZeroTier One - Pull requests are welcome!
672 stars 140 forks source link

No zt0 interface #52

Closed Mirodin closed 5 years ago

Mirodin commented 5 years ago

Some details first:

Problem:

There is no zt0 interface after following instructions.

How to reproduce:

I followed the instructions from the wiki page (https://github.com/mwarning/zerotier-openwrt/wiki). After rebooting my router I could ping it from my local LAN, via mobile network from my smartphone and vice versa. However the instructions state there is a zt0 interface I have to cover via a ZT0 interface (to be honest I do not quite understand that part either). But there is no zt0 interface created by zerotier.

Configs:

#~> uci show zerotier
zerotier.sample_config=zerotier
zerotier.sample_config.enabled='0'
zerotier.sample_config.secret='generate'
zerotier.sample_config.join='8056c2e21c000001'
zerotier.olymp=zerotier
zerotier.olymp.interface='wan'
zerotier.olymp.secret='1234567890'
zerotier.olymp.enabled='1'
zerotier.olymp.join='1234567890'
#~> cat /etc/config/zerotier 

config zerotier 'sample_config'
    option enabled '0'
    option secret 'generate'
    list join '8056c2e21c000001'

config zerotier 'olymp'
    option interface 'wan'
    option secret '1234567890'
    option enabled '1'
    list join '1234567890
#~> ifconfig zt0
ifconfig: zt0: error fetching interface information: Device not found
Mirodin commented 5 years ago

Ah, I found my mistake. Zerotier does not create a interface zt0 but some zt<random chars> which I did not identify at first. Sorry for that.

mwarning commented 5 years ago

:-)

mwarning commented 5 years ago

I have updated the docs.

Mirodin commented 5 years ago

Thanks, that might prevent others from tripping as well :)