[Bug 278295] add net 128.0.0.0: gateway 10.8.1.1 fib 1: Invalid argument

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 10 Apr 2024 21:29:25 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278295

            Bug ID: 278295
           Summary: add net 128.0.0.0: gateway 10.8.1.1 fib 1: Invalid
                    argument
           Product: Base System
           Version: 14.0-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: cnbatch@gmail.com

I was trying to make a OpenVPN connection with command

'setfib 1 openvpn connect_to_server.ovpn'

and got these errors:
add net 0.0.0.0: gateway 10.8.3.1 fib 1: Invalid argument
add net 128.0.0.0: gateway 10.8.3.1 fib 1: Invalid argument

If I add these routes in console, still got the same error messages.


But the connect command was success on FIB 0:

'openvpn myconnection.ovpn'

or

'setfib 0 openvpn myconnection.ovpn'

can connect to target server successfully.

I've already set 'net.fib=2' in /boot/loader.conf

Command 'set fib 1 netstat -rn' can return routing table successfully.


And I found this thread on freebsd forums:
https://forums.freebsd.org/threads/freebsd-14-and-route-in-non-zero-fib.91099/

The OP said it worked in 13.2.

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