Open grapexy opened 2 years ago
I figured out why aggregation was not happening - remote VPS peer had to have the same aggregation policy set. I don't know why remote's policy (which only has a single wan) affects another peer's policy, but changing local.conf on remote to the following enabled aggregation:
{
"physical": {},
"settings": {
"portMappingEnabled": false,
"defaultBondingPolicy": "custom-balance-aware",
"policies": {
"custom-balance-aware": {
"rebalanceStrategy": "aggressive",
"basePolicy": "balance-aware"
}
}
}
}
zerotier-cli bond {VPS_ID} show
still shows all 0s though.
I have 2 boxes in the network, both of them having direct link and using version 1.10.1:
And another linux box connected to OP1. I'm trying to send all outgoing traffic for linux box through the OP1, using both links with multipath, via OP2 on VPS configured as gateway.
local.conf:
Outbound NAT rule: ZeroTier interface > ZT interface address (172.22.0.1) Gateway for linux box: 172.22.1.1
This makes all outgoing connections on linux box to exit via OP2 WAN, and I can confirm that exit IP is OP2's public IP.
However, multipath is not working. All traffic is sent out using single WAN from OP1.
On OP1,
zerotier-cli bond {VPS_ID} show
output:These numbers are not affected in any way when the traffic is generated. I've also tried different bonding policies and same thing is happening. Is there something I'm missing?