[Bug 278220] gre: route add -iface invalid argument

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 07 Apr 2024 09:02:54 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278220

            Bug ID: 278220
           Summary: gre: route add -iface invalid argument
           Product: Base System
           Version: 14.0-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: dinoex@FreeBSD.org

Setup:
Using a GRE Tunnel to route an IPv4 and IPv6 network.
The endpoint is a small Cisco Router with "ip unnumbered"

After Updating from FreeBSD-13 to FreeBSD-14.
the gre tunnels stopped working for IPv4, IPv6 seems okay.
Kernel is GENERIC

On FreeBSD-14 any IPv4 route set is rejected with "Invalid argument"

Diagnostics:

# freebsd-version -kru
14.0-RELEASE-p6
14.0-RELEASE-p6
14.0-RELEASE-p6

# ifconfig gre0
gre0: flags=1008051<UP,POINTOPOINT,RUNNING,MULTICAST,LOWER_UP> metric 0 mtu
1476
        description: f2
        options=80000<LINKSTATE>
        tunnel inet 192.168.XXX.15 --> 185.XXX.XXX.2
        inet6 fe80::xxxx:xxxx:xxxx:xxxx%gre0 prefixlen 64 scopeid 0x4
        groups: gre
        fib: 3
        tunnelfib: 3
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>

# route add -4 10.10.10.10/24 -iface gre0
add net 10.10.10.10: gateway gre0 fib 0: Invalid argument

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