← All posts tagged setfib

pc
FreeBSD setfib /etc/rc.local
# Set the correct default routes in each table
setfib 0 route delete default
setfib 0 route add default 172.20.0.10
setfib 1 route delete default
setfib 1 route add default 10.172.20.1


# IPFW rules to set the correct FIB on incoming packets
ipfw -f flush
ipfw add allow ip from any to any via lo0
ipfw add setfib 1 ip from any to any via xl0
ipfw add setfib 0 ip from any to any via sk0
ipfw add allow ip from any to any
/etc/rc.conf
# Network settings
defaultrouter="10.172.20.1"
ifconfig_sk0="inet 172.20.0.2/24"
ifconfig_xl0="inet 10.172.20.2/24"
pc
balancing ipfw FreeBSD setfib /etc/rc.local
# Set the correct default routes in each table
setfib 0 route delete default
setfib 0 route add default 172.20.0.10
setfib 1 route delete default
setfib 1 route add default 10.172.20.1


# IPFW rules to set the correct FIB on incoming packets
ipfw -f flush
ipfw add allow ip from any to any via lo0
ipfw add setfib 1 ip from any to any via xl0
ipfw add setfib 0 ip from any to any via sk0
ipfw add allow ip from any to any
/etc/rc.conf
# Network settings
defaultrouter="10.172.20.1"
ifconfig_sk0="inet 172.20.0.2/24"
ifconfig_xl0="inet 10.172.20.2/24"