FiB routing and openvpn question

This is my last hope.

info:
re0 assigned to fib0
tun0 assigned to fib1
BSD box has a static ip of 192.168.1.13 with a gateway of 192.168.1.254
fib1 uses Surfshark vpn with a gateway of 10.7.7.1 and a random ip address of 10.7.7.x with openvpn

once this works I will be using setfib 1 qbittorrent-nox


rc.conf:
Code:
ifconfig_re0="inet 192.168.1.13 netmask 255.255.255.0 fib 0"
cloned_interfaces="tun0"
ifconfig_tun0="up fib 1"
static_routes="vpn"
route_vpn="-net 0.0.0.0/1 10.7.7.1 -fib 1"
route_vpn1="-net 128.0.0.0/1 10.7.7.1 -fib 1"
defaultrouter="192.168.1.254"

Openvpn error:
Code:
/sbin/ifconfig tun0 10.7.7.11/24 mtu 1500 up
ifconfig: ioctl (SIOCAIFADDR): Destination address required
==============================================
openvpn.conf has not been altered in any way from the surfshark one
==============================================
also: /boot/loader.conf is:
Code:
net.fibs=2
net.add_addr_allfibs=1


Finding information to learn this FiB stuff has been next to impossible for some reason and I have been at this for days now...ugh
The answer is somewhere in these commands I think because i got it all to work once with these being typed in.
Code:
ifconfig tun0 fib 1
ifconfig tun0 up
route add default 10.7.7.1 -fib 1
 
Last edited by a moderator:
Back
Top