openwrt route_allowed_ips is inprecise

Jason A. Donenfeld Jason at
Tue Dec 20 04:14:06 CET 2016

Hey Baptiste,

On Tue, Dec 20, 2016 at 2:13 AM, Baptiste Jonglez
<baptiste at> wrote:

> By the way, besides the issue of magic, this approach seems incorrect
> depending on the order of the routes.  Consider the case where cmd_add()
> handles the following sequence of allowed-ips:
>   dev wg0
>  dev wg0
>  dev wg1
> Your method would incorrectly drop the second route, and then the third
> route would take over traffic for this /24 through the wrong interface.

Very smart point and astute observation! This should be fixed here:

Unless there are objections, that will ship with the next snapshot.


More information about the WireGuard mailing list