A wants to send a packet to B, but since it has no direct path it sends it upstream to R (a root).
Zerotier goes through the ZT network, if your physical location is remote, and there are no ZT root servers nearby, it can be slower.
You can read how it works here: https://docs.zerotier.com/zerotier/manual
A wants to send a packet to B, but since it has no direct path it sends it upstream to R (a root).
They connect directly through more local servers. If there are no local servers it may all go through the slower relay...................
Clearly the solution is to move.
In my tests TailScale was significant faster than ZeroTier Peer to Peer …. Give TailScale a try and see for your selfI refuse to believe that this is a relay thing. If i move the zerotier peer from the mikrotik router to a windows desktop in the lan of the router, the speed goes up and maxes out.
This is a zerotier issue on the router and i have yet to find out how to address it.
You quoted that out of context, that is only how the initial packet of communication travels. Whole context here:Zerotier goes through the ZT network, if your physical location is remote, and there are no ZT root servers nearby, it can be slower.
You can read how it works here: https://docs.zerotier.com/zerotier/manual
A wants to send a packet to B, but since it has no direct path it sends it upstream to R (a root).
1. A wants to send a packet to B, but since it has no direct path it sends it upstream to R (a root).
2. If R has a direct link to B, it forwards the packet there. Otherwise it sends the packet upstream until planetary roots are reached. Planetary roots know about all nodes, so eventually the packet will reach B if B is online.
3. R also sends a message called rendezvous to A containing hints about how it might reach B. Meanwhile the root that forwards the packet to B sends rendezvous informing B how it might reach A.
4. A and B get their rendezvous messages and attempt to send test messages to each other, possibly accomplishing hole punching of any NATs or stateful firewalls that happen to be in the way. If this works a direct link is established and packets no longer need to take the scenic route.
/zerotier set 0 interfaces=WAN
This fixed a bug with zerotier arping for planets on my LAN interface.
/interface list member add list=LAN interface=zerotier1
create route tablesmyers, how do I connect a subnet on one MT router (acting as a client node), to go out the WANIP of another MT router (acting as a server node) through zerotier,
That is what I have not been able to figure out? Then I will test that vs a wireguard connection I already have doing the same thing.
This sound similar to what the OP is trying to do ?
Sorry I am not understanding then what your trying to do. There's not really a client server architecture in zerotier. When you connect to zerotier you are essentually plugging a wire into a virtual managed switch.That sounds all MT and NO ZT for setup.
It wont be ip addresses it will be a subnet.
No need to mangle, source address is the subnet but will use Table and Route rule.
But how to get this subnet via zerotier (from client router) to server Router and to the server routers internet.
I know how to manipulate the MT side, just need help on the ZT side!!
My test topology:@smyers119 is there a way to test speed only to my mikrotik and not the NAS ?
wireguard performance is not that better either. i think something's wrong with the router..
did you test your tunnel?
My test topology:@smyers119 is there a way to test speed only to my mikrotik and not the NAS ?
wireguard performance is not that better either. i think something's wrong with the router..
did you test your tunnel?
PC -->Microtik<-zerotier->opnsense in cloud-->internet
results: (maxed my upload speed)
speedtestzt.PNG
7.1.1 RB4011well, it's definitely not Zerotier then. what's your RouterOS?
My test topology:
PC -->Microtik<-zerotier->opnsense in cloud-->internet
results: (maxed my upload speed)
speedtestzt.PNG
on the device's where you don't want to push routes you can add "allow-managed=0" but note then you need to set ip and any routes manually which would be the preferred way on a router anyway.I am thinking I need to go to ZT advanced settings and put in a route.
Destination is 0.0.0.0/0 via ZT IP address of the Server ROUTER.
However that will send any traffic on the ZT virtual LAN from any other node/device NOT JUST the ServerClient device and its specific subnet traffic to the Server Router.
I want ONLY to route ALL the traffic from the Client Router Node to the Server Router Node. If you see what I am saying......
I just noticed you could also set this to just not accept default routes, if you don't want the hassle of having it unamanaged:on the device's where you don't want to push routes you can add "allow-managed=0" but note then you need to set ip and any routes manually which would be the preferred way on a router anyway.I am thinking I need to go to ZT advanced settings and put in a route.
Destination is 0.0.0.0/0 via ZT IP address of the Server ROUTER.
However that will send any traffic on the ZT virtual LAN from any other node/device NOT JUST the ServerClient device and its specific subnet traffic to the Server Router.
I want ONLY to route ALL the traffic from the Client Router Node to the Server Router Node. If you see what I am saying......
on mikrotik
/zerotier interface set 0 allow-managed=no
The routing would be done on the tik's not on zerotier.I have no idea what those settings are doing on the MT.
Remember I have not pushed any traffic yet from any other devices onto the virtual LAN.
So its not a concern at the moment.
I fully expect that the missing gap MUST be done at the zerotier network level not on my MT devices.
For instance lets say I have FIVE MT DEVICES A B C D E
I want subnet X of device A, to go out internet of device E
I want subnet Y of device B, to go out internet of device C
I want subnet Z of device D, to also go out internet of device C.
Where is the zerotier help to make this happen???
There community help is a joke and their FAQ is a joke.
Im starting to lean to tailscale if its simpler.......... this is frustrating.
@normisZerotier goes through the ZT network, if your physical location is remote, and there are no ZT root servers nearby, it can be slower.
If you're looking for raw performance, ZT would be a poor VPN choose. But if you need a Layer-2 bridging, it's one of your only choices. So ZT vs Tailscale is saying TCP is better/worse than UDP – they are just different. Or MLPS vs OSPF would be another apt analogy to ZeroTier vs TailScale. e.g. ZT prefer the reliability of connection like TCP, but similar to MLPS, while Tailscale is more similar to UDP and OSPF. If you want a Mikrotik to show up in Winbox via discovery, you'll need ZT & that's not possible with TailScale. By the same token, if I want to have a more sophisticated auth scheme or simply cloud L3 routing/policy, ZT be poorly suited to those needs.@normisZerotier goes through the ZT network, if your physical location is remote, and there are no ZT root servers nearby, it can be slower.
And which is why bandwidth performance is vastly superior IMO based on all my tests so far especially for people who have symmetric bandwidth plans like most fiber networks do.
@Amm0If you're looking for raw performance, ZT would be a poor VPN choose. But if you need a Layer-2 bridging, it's one of your only choices.
@Amm0If you're looking for raw performance, ZT would be a poor VPN choose. But if you need a Layer-2 bridging, it's one of your only choices.
Your post was very interesting and I 4 1 very much appreciate the effort you put in to describe the ZT tribulations you've so far experienced.
Please TRY TailScale out and truly find out how a very efficient MESH actually works on a peer to peer basis from a VPN/WireGuard perspective .... I would state its very much like mimicking a MASSIVE Switch ... so no its not layer 2 but very close to it I bet if you actually tried it out you would be objectively impressed. BTW, did you know that TailScale is based out of Toronto Canada while ZeroTier is based out of Irvine, California -- not that it matters much.... BTW if you do take my suggestion and try TailScale out ....there is absolutely nothing to configure on your Tik unless you want to implement TailScale Subnet routers and traffic relay nodes ..... start small and after you get acclimatized -- grow as big as you need to....
Your Tik is your router. When you install the TailScale client on your Phone, on your NAS, on your windows PC … whatever traffic is behind your Tik goes through your Tik …. There is absolutely nothing that you have to configure on your Tik ….. when you are remote and want to connect to your NAS for example the traffic will go through your Tik via your TailScale Network. TailScale manages everything for you. Give it a try and see for yourself.I dont mind giving tailscale a shot. Does it run on mikrotiks?
Your Tik is your router. When you install the TailScale client on your Phone, on your NAS, on your windows PC … whatever traffic is behind your Tik goes through your Tik …. There is absolutely nothing that you have to configure on your Tik ….. when you are remote and want to connect to your NAS for example the traffic will go through your Tik via your TailScale Network. TailScale manages everything for you. Give it a try and see for yourself.I dont mind giving tailscale a shot. Does it run on mikrotiks?
You do not need docker. TailScale has a client for your Synology NAS … check the package center near the bottom. I’ve installed it on my Synology NAS .Also my ds218j nas doesnt support docker and thus no ZT. Same for tailscale. aka i cant deploy it on either the router or nas.
You do not need docker. TailScale has a client for your Synology NAS … check the package center near the bottom. I’ve installed it on my Synology NAS .Also my ds218j nas doesnt support docker and thus no ZT. Same for tailscale. aka i cant deploy it on either the router or nas.
My TailScale network has 2 windows 10 PC’s, my iPhone, my Synology NAS. Remotely I access my NAS via my phone and winows laptop … and when I want to manage my Tik router remotely I use my windows laptop to connect to my windows desktop via windows Remote Desktop. So in my case … my NAS, my desktop PC are behind my Tik router. Everything via TailScale vpn works really well.
BTW, I am only playing with TailScale to learn how stuff works. Normally I just use WireGuard to do everything I need to do and it’s all I need … but if you do not like to configure things especially for non-technical people TailScale is remarkable because it does everything for you under normal circumstances. When more complex issues arise then TailScale Subnet Routers come into play and that requires some effort.
When testing on your Phone are you in remote or at home ? if testing from home make sure to turn off your phone wireless and use only your cell connection -- if testing from remote location its ok to leave either connection methods on.Any idea why the speeds are inconsistend? Download speed reaches my maximum bandwidth but then drops, then goes up all the time. I even set the metric of the tailscale tunnel in windows as the lowest of all adapters, same happens on my phone. It's definitely not my connection, since I tried mobile data as well.. Could it be a bottleneck on my router? I know it does not run a tailscale tunnel, but isnt it supposed to max out on the bandwidth?
I know for a fact that my synology operates properly, and the e WD Red 4TB drive also is good (110MB/s on LAN), so it could be an issue with my TIK. i will play around, disable the other interface tunnels on the TIK and report
When testing on your Phone are you in remote or at home ? if testing from home make sure to turn off your phone wireless and use only your cell connection -- if testing from remote location its ok to leave either connection methods on.Any idea why the speeds are inconsistend? Download speed reaches my maximum bandwidth but then drops, then goes up all the time. I even set the metric of the tailscale tunnel in windows as the lowest of all adapters, same happens on my phone. It's definitely not my connection, since I tried mobile data as well.. Could it be a bottleneck on my router? I know it does not run a tailscale tunnel, but isnt it supposed to max out on the bandwidth?
I know for a fact that my synology operates properly, and the e WD Red 4TB drive also is good (110MB/s on LAN), so it could be an issue with my TIK. i will play around, disable the other interface tunnels on the TIK and report
When testing on your Windows PC from home are you wired or wireless?
What you describe as >>>> Download speed reaches my maximum bandwidth but then drops, then goes up all the time <<<< is coming from your Tik Router and your ISP gateway ... when testing its best to keep it as simple as possible. Your Tik + your ISP device is providing the Bandwidth ... your Tailscale vpn client is exploiting that bandwidth and it can only use what it receives from the Router + ISP device. If the TailScale Client is an issue there are some troubleshooting steps you can follow: https://tailscale.com/kb/1023/troubleshooting/
Also check out the TailScale support forum at https://forum.tailscale.com/
They are very helpful ... for example https://forum.tailscale.com/t/dramatic- ... onnect/327
I checked your Tik config I do not see anything there that is hindering you. The TailScale support foks can inspect your TailScale client logs and give you some good feedback as to why your not getting more … I suspect it’s your Connection and the only way to check that is to have those TailScale client logs inspected.. LTE 4G can be erratic since that bandwidth is shared by many depending on the time of day/night …. The very same can be said for cable (DOCSIS) so those comm logs are invaluable …. Have you run the iPerf tests?….. my Coax ISP upload is stable at 50mbps.. docsis 3.1
…….
Maybe my firewall rules? do i have to disable fasttrack or move it higher up? idk it bothers me so much that i cant achieve maximum bandwidth..
I checked your Tik config I do not anything there that is hindering you. The TailScale support foks can inspect your TailScale client logs and give you some good feedback as to why your not getting more … I suspect it’s your Connection and the only way to check that is to have those TailScale client logs inspected.. LTE 4G can be erratic since that bandwidth is shared by many depending on the time of day/night …. The very same can be said for cable (DOCSIS) so those comm logs are invaluable …. Have you run the iPerf tests?….. my Coax ISP upload is stable at 50mbps.. docsis 3.1
…….
Maybe my firewall rules? do i have to disable fasttrack or move it higher up? idk it bothers me so much that i cant achieve maximum bandwidth..
@pitfermi …. EXCELLENT ……no. im not on site(home), but i have figured out the wireguard speed issue. i was not split tunneling, and my devices had all the traffic go through the WG tunnel, youtube etc and the NAS download speeds were slower for this reason, since the TIK had other stuff to do as well. So now i will just do split tunneling to access my home network only
@pitfermi …. EXCELLENT ……no. im not on site(home), but i have figured out the wireguard speed issue. i was not split tunneling, and my devices had all the traffic go through the WG tunnel, youtube etc and the NAS download speeds were slower for this reason, since the TIK had other stuff to do as well. So now i will just do split tunneling to access my home network only
Same here on HAP ac3 and RB3011 we used for testing. One core maxes out at 100% and I guess this is the reason the bandwidth is limited to around 20MBit.@krafg
I'm having the same issue: ~20Mbps over Zerotier & HAP ac3
If I turn off Zerotier and just NAT out, then I get ~200Mbps.
And if I enable Zerotier on my Windows desktop, through the same HAP ac3, then I get ~100Mbps
> The cpu load of hap ac3, when transfering files is 20-30%, avg 25%, but i dont think this explains the slow download speed.
It looks like it could be one of the CPU cores maxing out:
Columns: CPU, LOAD, IRQ, DISK
# CPU LOAD IRQ DISK
0 cpu0 45% 25% 0%
1 cpu1 100% 3% 0%
2 cpu2 15% 2% 0%
3 cpu3 1% 0% 0%
I have also added Fasttrack entries under the Firewall, which have made no difference.
Kind regards,
Ryan van Klaveren