net.fibs: 2 net.add_addr_allfibs: 0
ifconfig igb0 fib 1 setfib 1 netstat -rn
# The Interface should not be listed in the main Routing Tablesetfib 0 netstat -rn# The Interface should be in the second Routing Tablesetfib 1 netstat -rn
I did a quick test with my "emergency Interface" this morning. The interface is configured with simple defaults so that im able to access the OPNsense in case i messed somethin up. It is suitable beeing configured in a seperate routing table so that one can rescue the system in case everything is broken.What i configured:Tunable Config:Code: [Select] net.fibs: 2 net.add_addr_allfibs: 0GUI: Disable interface that should be in second routing table and restart OPNsenseCommandline:Code: [Select] ifconfig igb0 fib 1 setfib 1 netstat -rnGUI: Enable InterfaceCheck routing Table:Code: [Select]# The Interface should not be listed in the main Routing Tablesetfib 0 netstat -rn# The Interface should be in the second Routing Tablesetfib 1 netstat -rnWhat i need to test:-Configure the Interface IP with an IP thats already configured on another Interface.-Check how Firewalling behaves-Check how Applications listenting on the Interface behaveIf it works nicely it would be amazing if the next Kernel would be compiled supporting multiple routing tables.It would be also nice if one can select a different routing table while configuring an interface.
# NETWORKING OPTIONS## Protocol families#options INET #Internet communications protocolsoptions INET6 #IPv6 communications protocolsoptions RATELIMIT # TX rate limiting supportoptions [b]ROUTETABLES=2 [/b] # allocated fibs up to 65536. default is 1. # but that would be a bad idea as they are large.
What i need to test:-Configure the Interface IP with an IP thats already configured on another Interface.-Check how Firewalling behaves-Check how Applications listenting on the Interface behave
I had just tested. Unfortunately, the configuration does not work (yet). The interface in the VRF can be pinged. But the web GUI of the OPNSense cannot be reached. In the meantime I restarted the web GUI, but without success. I suspect that the URPF mentioned in the other forum post is interfering.