# pass all traffic via default route ($ext_if1) and traffic from 192.168.10.10 via secondary gateway ($ext_if2)
pass in on $int_if from 192.168.10.10 to any tag WAN2
pass out tagged WAN2 route-to ($ext_if2 $ext_gw2)
pass out on $ext_if1
int_if="em0"
ext_if1="igb0"
ext_if2="igb1"
ext_gw1="10.10.20.1"
ext_gw2="10.10.30.1"
block all
pass in quick on $int_if from 192.168.10.10 to any tag ISP2
pass in quick on $int_if from 192.168.10.0/24 to any
pass out quick tagged ISP2 route-to ($ext_if2 $ext_gw2)
pass out quick on $ext_if1
Do not use PF and IPFW at the same time. Don't take my word for it:thank you so much! I would like to ask you one last thing. If I have two rules, one with fwd for ipfw and another with route-to for pf, do you know which of the two firewalls is activated first? if there is an activation order