Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Feb 2025 17:52:07 +0000
From:      bugzilla-noreply@freebsd.org
To:        net@FreeBSD.org
Subject:   [Bug 284857] wg(4): IPv4 packet with IPv6 nexthop not forwarded
Message-ID:  <bug-284857-7501-SLueh0bNZS@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-284857-7501@https.bugs.freebsd.org/bugzilla/>
References:  <bug-284857-7501@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=3D284857

Marek Zarychta <zarychtam@plan-b.pwste.edu.pl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zarychtam@plan-b.pwste.edu.
                   |                            |pl

--- Comment #1 from Marek Zarychta <zarychtam@plan-b.pwste.edu.pl> ---
Created attachment 258107
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D258107&action=
=3Dedit
0001-wg-Unbreak-IPv4-routes-with-an-IPv6-next-hops.patch

Tested in semi-production scenario:

[hamal] /usr/src_head# route add 10.0.0.x/32 -6 2001:db8:db8::1
add net 10.0.0.x: gateway 2001:db8:db8::1 fib 0
[hamal] /usr/src_head# route get 10.0.0.x
   route to: 10.0.0.x
destination: 10.0.0.x
    gateway: 2001:db8:db8::1
        fib: 0
  interface: wg1
      flags: <UP,GATEWAY,HOST,DONE,STATIC>
 recvpipe  sendpipe  ssthresh  rtt,msec    mtu        weight    expire
       0         0         0         0      1420         1         0
[hamal] /usr/src_head# ping -c 3 -S 172.19.3.5 10.0.0.x
PING 10.0.0.x (10.0.0.x) from 172.19.3.5: 56 data bytes
64 bytes from 10.0.0.x: icmp_seq=3D0 ttl=3D63 time=3D8.893 ms
64 bytes from 10.0.0.x: icmp_seq=3D1 ttl=3D63 time=3D8.515 ms
64 bytes from 10.0.0.x: icmp_seq=3D2 ttl=3D63 time=3D8.506 ms

--- 10.0.0.x ping statistics ---
3 packets transmitted, 3 packets received, 0.0% packet loss
round-trip min/avg/max/stddev =3D 8.506/8.638/8.893/0.180 ms

Tested from recent 15.0-CURRENT to 14.2-STABLE on the remote endpoint. Both
endpoints were patched. Without this patch, the test was falling as reported
above.

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-284857-7501-SLueh0bNZS>