Open dionorgua opened 2 years ago
I've already tried to implement such 'client' for Mikrotik router. it's certainly possible. Followed curl request can be used to get actual config:
curl -v "https://api.example.com/api/nodes/mynet/a736137e-33a8-47c4-9017-a8d8af4f879d" -H "Authorization: Bearer myHash"
A few issues:
networklastmodified
or nodeslastmodified
values.peers
and peerids
. Node in peers
has no string representation of wireguard public key (need to calculate from byte array). And node in 'peerids` has no endpoint information./////w==
Making netclient work with Mikrotik would be so cool.
Contact Details
dion@inhex.net
What happened?
I've played a bit with netmaker gui, installed it on a few devices and really like it.
They only limitation that I see is that there is no full-featured client for Android phone and I can't install it on Mikrotik router. I understand that native Android client is just question of time. But adding Netmaker support to Mikrotik router is almost impossible (without some agreement from Mikrotik itself)
I also understand that I can use Wireguard-capable device by using ingress gateway. But I don't like fact that:
At the same time I think that Netmaker already contains most of stuff needed for almost perfect support of such devices. Basically followed things are needed:
This setup will keep most benefits of mesh network and at the same time will eliminate requirements to use netmaker client to get it working. Surely such 'polling' client will be unable to do NAT traverse itself, but it'll be able to connect to nodes with public IP address and likely will be able to connect to nodes that are running netclient (so that NAT traverse will be performed by netclient on other side)
I think everything except last one is already possible. But main issue here is that this is not public API so it's not documented and may change at any time.
As about Mikrotik routers: they supports wireguard (with static configuration). Plus they have scripting language that has enough features to implement such 'polling' client fully in user script.
Version
v0.16.0
What OS are you using?
Unlisted
Relevant log output
No response
Contributing guidelines