OPNsense Forum

English Forums => 18.7 Legacy Series => Topic started by: CDuv on January 16, 2019, 02:27:50 pm

Title: Benchmark each WAN bandwidth on multi-WAN setup ?
Post by: CDuv on January 16, 2019, 02:27:50 pm

To periodically benchmark the bandwidth of my WAN connection I use speedtest-cli (https://github.com/sivel/speedtest-cli): which works fine.
But I want to extend this benchmark to the other WANs (I have a multi-WAN failover setup) so I guess I need a firewall rule with gateway policy to force traffic to go via the other WAN.

Say the computer running speedtest-cli has IP, I can add a OPNsense firewall rule "from=; gw=WAN_FAILOVER" but I don't want enable/disable the rule each time... so I am looking for a way to make this permanent/stable.

I see 3 ways:

I think solution 1 (virtual network interface) is the best but I am open to other solutions I have not thought about :)