Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Nov 2023 00:51:11 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 275341] Cannot add a route to a wireguard interface without the device having an address.
Message-ID:  <bug-275341-227-m1bFF2KRGz@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-275341-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-275341-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D275341

--- 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

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-275341-227-m1bFF2KRGz>