Open WojtekWaga opened 1 year ago
Just stumbled over this or something very similar:
wireguard 1.0.20220627-1
Version: v2.0.9-hotfix.7
Build ID: 5622762
Build on: 06/15/23 11:31
Copyright: 2012-2020 Ubiquiti Networks, Inc.
HW model: EdgeRouter 4
I found a suspicious route for 0.0.0.0/24
. After deleting that route i found that it reappeared after setting one of the wireguard interfaces down:
root@wand:~# ip li li | grep wg
29: wg0: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1420 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
30: wg1: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1420 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
root@wand:~# ip ro li | grep wg
0.0.0.0/24 dev wg1 proto kernel scope link
10.10.0.0/24 dev wg1 proto kernel scope link src 10.10.0.3
192.168.179.0/24 dev wg0 proto kernel scope link src 192.168.179.254
root@wand:~# ip ro del 0.0.0.0/24
root@wand:~# ip ro li | grep wg
10.10.0.0/24 dev wg1 proto kernel scope link src 10.10.0.3
192.168.179.0/24 dev wg0 proto kernel scope link src 192.168.179.254
root@wand:~# ip li set wg1 down
root@wand:~# ip ro li | grep wg
0.0.0.0/24 dev wg0 proto kernel scope link
192.168.179.0/24 dev wg0 proto kernel scope link src 192.168.179.254
Also re-enabling the interface does let the suspicious route re-appear.
I have the same issue with the e300-v2 (ER-6P).
Package version
1.0.20220627-1
Firmware version
2.0.9-hotfix.6
Device
EdgeRouter Lite / PoE - e100
Issue description
When configuring more than one wgX interface I'm getting odd routes in the routing table:
Configuration and log output