I’ve been looking @ github and partially answered my own question …
if (arg2 == "enable") {
fprintf(stderr, "zerotier-cli bond <peerId> enable\n");
return 0;
}
it appears that all commands except show and listing bonds is still currently not implimented from CLI…
The question therefore becomes … how exactly can I get this working via JSON ?
I’m starting to think i’ve missed something fundamental here, but not sure how or what…
I have an OPNSense router with two wan connections (ue0 and ue1), both are effectively identical, behind the OPNsense network are a few client machines that need access to IP’s behind my remote server (debian) which has a single wan (very fast) connection (enp34s0).
my ‘dream’ solution here is having a machine on local LAN with Zerotier client (gigabit lan connection) connecting into the Zerotier SD-WAN, and using OPNSense to then relay via a load balanced uplink to the remote server.
in my setup are (for now) 3 machines:
435365ab46 (OPNsense, dual wan)
64198ff193 (Lan client, behind OPNSense)
8ed670dc1b (Remote server)
From how I have read everything, for the first phase (just getting a bonded connection to remote server) however, even after a switch to 1.6.1 the bonding commands are not working as in the documentation?
root@OPNsense:~ # zerotier-cli status
200 info 435365ab46 1.6.1 ONLINE
root@OPNsense:~ # zerotier-cli bond 8ed670dc1b enable
zerotier-cli bond <peerId> enable
root@OPNsense:~ #
root@fi ~ # zerotier-cli status
200 info 8ed670dc1b 1.6.1 ONLINE
root@fi ~ # zerotier-cli bond 435365ab46 enable
zerotier-cli bond <peerId> enable
root@fi ~ #
I have also (on OPNSense side) tried with a local JSON’d configuration:
{ "settings": { "defaultBondingPolicy": "myPolicy", "myPolicy": { "balancePolicy": "flow-dynamic" }, "policies": { "myPolicy": { "links": { "ue0": { "ipvPref": 4, "failoverTo": "ue1", "mode": "primary", "enabled": true }, "ue1": { "ipvPref": 4, "failoverTo": "ue0", "mode": "primary", "enabled": true } } } }, "peerSpecificBonds": { "8ed670dc1b":"myPolicy" } } }
from frankensteining various parts of documentation… and zerotier-cli simply hangs after it’s added (so something obv wrong in my configuration)
Any advice or suggestions?