[Bug 275341] Cannot add a route to a wireguard interface without the device having an address.
Date: Sun, 26 Nov 2023 00:51:11 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275341 --- Comment #2 from Jose Luis Duran <jlduran@gmail.com> --- I can verify that review D41330 fixes the problem. Assuming 14.0-RELEASE sources in /usr/src: # git clone -b releng/14.0 https://git.freebsd.org/src.git /usr/src Apply the patch: # cd /usr/src # patch < fetch https://reviews.freebsd.org/D41330.diff Build and install the kernel: # make buildkernel # make installkernel Reboot: # shutdown -r now The old kernel is under /boot/kernel.old. It should work as expected. Try again: # ifconfig wg1 create # ifconfig wg1 up # route -n add 10.2.0.0/24 -interface wg1 add net 10.2.0.0: gateway wg1 Verify: # netstat -4nr -- You are receiving this mail because: You are the assignee for the bug.