ZeroTier nodes on same network give "No route to host" errors
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
ZeroTier nodes on same network give "No route to host" errors
Hello, I've been using the zerotier-one package installed on my Linux systems to connect them into a ZeroTier network which I manage at ZeroTier Central. A typical use case is to SSH from system A to system B.
However, for the past few days all attempts at connection between these systems fail. For example, when ssh-ing from system A to B, I get a "No route to host error" on the commandline. I've checked `systemctl status zerotier-one` on both systems which shows no problems, the network view at ZeroTier Central shows both systems as ONLINE with the correct IPs, the zerotier-cli listnetworks command shows the "OK" status, and ifconfig on both systems also show that they got the correct IPs.
Hello, I've been using the zerotier-one package installed on my Linux systems to connect them into a ZeroTier network which I manage at ZeroTier Central. A typical use case is to SSH from system A to system B.
However, for the past few days all attempts at connection between these systems fail. For example, when ssh-ing from system A to B, I get a "No route to host error" on the commandline. I've checked `systemctl status zerotier-one` on both systems which shows no problems, the network view at ZeroTier Central shows both systems as ONLINE with the correct IPs, the zerotier-cli listnetworks command shows the "OK" status, and ifconfig on both systems also show that they got the correct IPs.
How can I troubleshoot this? Thanks.
Have you only tried SSH? Can you ping from A to B?
Have you only tried SSH? Can you ping from A to B?
Thank you @permaroot. I tried pinging from A to B and vice versa, and all pings failed with:
Code:
Destination unreachable: Address unreachable
Looks like the two aren't reaching each other at all? This is strange because from the online ZeroTier Central dashboard, both nodes show up as "online".... Anything else I can do to troubleshoot this? Thank you.
If it worked before I wouldn’t think it would be your firewall but I would have a look at your settings and make sure the icmp requests and ssh connections aren’t being blocked by iptables or whatever firewall you use. I am not too familiar with zerotier so I can’t speak as to its configuration.
If it worked before I wouldn’t think it would be your firewall but I would have a look at your settings and make sure the icmp requests and ssh connections aren’t being blocked by iptables or whatever firewall you use. I am not too familiar with zerotier so I can’t speak as to its configuration.
Apparently my firewall settings are fine and are not blocking any of this, which makes sense because they've always worked until now...
I tried to ping a few more times this week, and occasionally it works but with up to 70% packet loss!
I also tried the "zerotier-cli peers" command to list peers on nodes A and B, and they both show up in the list. However, the connection type is listed as "RELAY" rather than "DIRECT". Not sure if that's the culprit?
Since client A is mobile, I've moved it to different places with different Internet connections, but that didn't help with any of the above....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.