PFSENSE: routing packets based on source IP address

pfsensepolicy-routingrouting

I am trying to route packets (actually, trying to change DEFAULT GATEWAY) depending on source IP address with PFSENSE.

ONE-SPECIFIC-IP ---> SPECIAL GATEWAY
ANY-IP          ---> DEFAULT GATEWAY

I guess this can be done with some similar to CISCO's PBR (policy based routing). But I need to do it with PFSENSE.

Is it possible? What's the option I should be looking into to do this?

Best Answer

On pfense you can implement this easily via rules. Create a firewall rule and assign a gateway on the advanced tab of the rule options.

enter image description here