[Bug 278295] add net 128.0.0.0: gateway 10.8.1.1 fib 1: Invalid argument
Date: Thu, 02 May 2024 16:30:36 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278295 --- Comment #1 from cnbatch@gmail.com --- I've found the problem. When OpenVPN establishes a connection, it creates the tun0 interface and assigns an address to it. When running OpenVPN with setfib, the address assigned to tun0 appears in fib0 instead of fib 1. That's why subsequent routing entries all fail to add. I tried manually creating the tun interface, and I reached the same conclusion: 'setfib 1 ifconfig tun create' 'setfib 1 ifconfig tun0 inet 10.100.0.2 10.100.0.1 netmask 255.255.255.0 mtu 1500 up' Then running: 'netstat -rn' 'setfib 1 netstat -rn' The output shows that the address of tun0 is assigned to fib 0 instead of fib 1. If after running the command 'setfib 1 openvpn connect_to_server.ovpn' I manually add the IP address of tun0 to fib 1, then followed by 'route add' commands, which would originally fail: 'setfib 1 route add -net 0.0.0.0 10.100.0.1 128.0.0.0' 'setfib 1 route add -net 128.0.0.0 10.100.0.1 128.0.0.0' no longer result in errors and are successfully added to fib 1. It seems like it might be a bug in ifconfig. -- You are receiving this mail because: You are the assignee for the bug.