0.0.20190702 not working with EdgeOS 2.0.4
Opened this issue · 6 comments
I just updated to EdgeOS 2.0.4 on an EdgeRouter Infinity.
0.0.20190702 installs without complaint, but everything I try to do gives me
RTNETLINK answers: Operation not supported.
I also have an EdgeRouter lite and an EdgeRouter 4, but I haven't tried them yet.
I'm pretty sure that 0.0.20190702 worked with 2.0.3, but I can revert and try it again if it helps.
Was there a kernel change from EdgeOS 2.0.3 to 2.0.4?
edit:
Never mind - I downloaded the v1 version.
Shouldn't dpkg give an error message when installing the wrong version?
I think I got the same problem and it seems to be cased by that 2.0.4 switched to kernel 4.9 instead of 3.10 which the included wireguard.ko
is built for.
@farmwald dpkg doesn't care, but we could probably add a pre-install hook to verify that the kernel version is correct, and fail the install if it's not.
What's the recommended resolution since 20190702-1 doesn't work with 2.0.4/4.9.79-UBNT?
EDIT -- I feel stupid. I noticed later that lower on the release page are the version for v2 firmware. I.E. don't get this wireguard-e100-0.0.20190702-1.deb but get this wireguard-v2.0-e100-0.0.20190702-1.deb. I am leaving this here just in case my bluder helps somebody else.
Trying to setup between a EdgeRouter X sfp and Edgerouter Lite. This is my first time working with WireGuard, but I think this might be related to this issue so I am reporting to give additional data.
Both routers are currently up to date. I factory reset them both and updated the firmware to the most current version before starting. Then I set them both up in their respective locations with the ER X being there strictly to give me a WireGuard endpoint for a Site-to-Site VNP and the ER Lite being the primary router in the location. In both cases I used the wizard to set them up and they are rather simple single WAN with a Static IP setups. The ER Lite has two internal networks, LAN on 172.16.16.0/24 and WLAN on 172.17.17.0/24. They have the firewall open to allow full communication between the two subnets.
On the ER X I downloaded and installed the e50 version of 0.0.20190702 and on the Lite I installed the e100 version of 0.0.20190702. I was able to configure the ER X with:
set interfaces wireguard wg0 address 172.16.17.2/29
set interfaces wireguard wg0 listen-port 51820
set interfaces wireguard wg0 route-allowed-ips true
set interfaces wireguard wg0 private-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
set interfaces wireguard wg0 peer yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy= allowed-ips 172.16.16.0/24
set interfaces wireguard wg0 peer yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy= allowed-ips 172.17.17.0/24
set interfaces wireguard wg0 peer yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy= endpoint 71.xxx.xxx.xxx:51820
set interfaces wireguard wg0 peer yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy= persistent-keepalive 15
I can see the wg0 interface on the ER X.
On the ER Lite I attempted to set it up with this:
set interfaces wireguard wg0 address 172.16.17.1/29
set interfaces wireguard wg0 listen-port 51820
set interfaces wireguard wg0 route-allowed-ips true
set interfaces wireguard wg0 private-key yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy=
set interfaces wireguard wg0 peer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx= allowed-ips 192.168.10.0/23
set interfaces wireguard wg0 peer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx= endpoint 69.xxx.xxx.xxx:51820
set interfaces wireguard wg0 peer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx= persistent-keepalive 15
However when I type commit I get the RTNETLINK: Operation not supported.
Not sure how to check what kernel I am using against was kernel this version supports, and I don't know how to work around this yet. I think I saw another thread mentioning the same error and kernel versions saying you can build it yourself. I will be checking that out so see if it helps me to move forward.
Edit:
EdgeRouter X sfp
uname -r
responds with 3.10.107-UBNT
show version
responds with
Version: v1.10.10
Build ID: 5210345
Build on: 07/14/19 11:27
Copyright: 2012-2018 Ubiquiti Networks, Inc.
HW model: EdgeRouter X SFP 6-Port
EdgeRouter Lite
uname -r
responds with 4.9.79-UBNT
show version
responds with
Version: v2.0.6
Build ID: 5208553
Build on: 07/08/19 06:07
Copyright: 2012-2018 Ubiquiti Networks, Inc.
HW model: EdgeRouter Lite 3-Port
You are using the wrong version of the E-xxx package, there is one for ER 1.x and one for ER 2.x
Look for the download deb for version 2 (it isn't named exactly the same, it's towards the end of the release file list)