Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HELP][QUESTION]Zerotier does not create zt0 interface on DD-WRT #155

Closed
2senel opened this issue Mar 27, 2015 · 16 comments
Closed

[HELP][QUESTION]Zerotier does not create zt0 interface on DD-WRT #155

2senel opened this issue Mar 27, 2015 · 16 comments

Comments

@2senel
Copy link

2senel commented Mar 27, 2015

I dont know what happened because it worked fine on DD-WRR router....
Zerotier-one is running.

zt0 is not created and zerotier-cli listnetworks returns:
200 listnetworks 8056c2e21c2bc48d LAN_private 8e:54:a0:4a:b5:d9 INITIALIZING 50436 private -

However web network administration shows pretty much this:
908b56571b 3 seconds 10.185.5.1/20 ....

Is there any way how to create interface manually or debug this issue?

@adamierymenko
Copy link
Contributor

Is the 'tun' kernel module available?

@adamierymenko
Copy link
Contributor

It may be either compiled into the kernel or available as a module, but if it's not available ZeroTier One won't be able to create interfaces.

@2senel
Copy link
Author

2senel commented Apr 2, 2015

Hi,

tun module is avaible. Zerotier worked fine until a few weeks ago, then "something" happened.

I'm running same firmware on same router without any config changes. There's OpenVPN instance running on same router using one tun and one tap interface, so this is no tun/tap issue, I guess.

Rather, I'm wondering if there's a way how to create interface manually to test it?

As I mentioned above, strange thing is that my router acts like online in web administration.

@adamierymenko
Copy link
Contributor

It probably is online in the sense that the ZeroTier service is communicating. It just seems to have some sort of problem creating the tun/tap device.

A few things to check:

  • Is the disk/flash storage full?
  • Is there perhaps some kind of permission problem?
  • Is the /sbin/ip binary available? This is needed to configure the interface.

@2senel
Copy link
Author

2senel commented Apr 5, 2015

  1. No, there`s more than 500MB free.

  2. Maybe, just to be sure, all test are under root. This should eliminate permision problems.

  3. ip cmd is available from /usr/sbin path though and PATH is set correctly.

@2senel
Copy link
Author

2senel commented Apr 6, 2015

Did some experiments with router and found this in log:

Mon Apr 6 10:20:30 2015] network 8056c2e21c2bc48d failed to initialize: unable to configure TAP MTU

@adamierymenko
Copy link
Contributor

That would be a failure here:

// Set MTU
ifr.ifr_ifru.ifru_mtu = (int)mtu;
if (ioctl(sock,SIOCSIFMTU,(void *)&ifr) < 0) {
    ::close(_fd);
    ::close(sock);
    throw std::runtime_error("unable to configure TAP MTU");
}

What kernel version do you have going here?

@2senel
Copy link
Author

2senel commented Apr 6, 2015

Firmware Version DD-WRT v24-sp2 (04/01/15) big - build 26635
Kernel Version Linux 2.6.24.111 #24872 Wed Apr 1 03:06:50 CEST 2015 mips

@adamierymenko
Copy link
Contributor

What happens if you manually try to set MTU on an interface manually with ifconfig? Try setting it higher? Maybe there is some kind of /proc filesystem setting for max MTU?

@adamierymenko
Copy link
Contributor

ZeroTier's TAPs get an MTU of 2800 -- this will become per-network configurable in the future but that's what they get now.

@2senel
Copy link
Author

2senel commented Apr 6, 2015

I tried to set MTU globally from auto to several values (1200,1500, 2800, ...) and error is same.

Cant set MTU for zt0 interface with ifconfig because theres no zt0 iface created.

So I uninstalled zerotier completely and started from scratch and ended up with same error as above.

@adamierymenko
Copy link
Contributor

It seems the interface isn't being properly initialized/created, but this isn't being detected.

Do an 'ifconfig -a' before and after starting the service. Do you see any new interfaces being created?

@2senel
Copy link
Author

2senel commented Apr 21, 2015

Switched from DD-WRT based router to AsusWRT and ZT works fine since then.

@2senel 2senel closed this as completed Apr 21, 2015
@huangyingw
Copy link

@2senel , I am very interested in "how to install zerotier on dd-wrt", could you share more in details ?

@bobberb
Copy link
Contributor

bobberb commented Nov 1, 2017

@2senel would like to know how to install on AsusWRT as well

@laduke
Copy link
Contributor

laduke commented Nov 1, 2017

@2senel @bobberb thanks for your interest. ZeroTier doesn't do the WRT packages. You'd have to go check with those projects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants