I am wondering when a packet reaches an interface and I have some PF rules, which gets checked first, the routing table or the ruleset?
ext_if = "em0"
int_if = "em1"
localnet = $int_if:network
VPN_if = 172.16.0.110
nat log on $ext_if from any to any -> ($ext_if)
rdr pass log on $ext_if proto tcp from !($ext_if) to any port 1:65000\
-> $VPN_if port 2500
pass log from { lo0, $localnet } to any keep state