OPNsense Forum

English Forums => General Discussion => Topic started by: greY on May 31, 2024, 02:11:29 PM

Title: Static Routing vs Firewall based
Post by: greY on May 31, 2024, 02:11:29 PM
Hi

is there a general difference in using static routes configuration vs configuring routes using FW rules and pointing them to the right gateway?

I did some tests and both works, I see more flexibility in using FW rules. Would like to ask if there is a general case when static routes should be used?

thx
Title: Re: Static Routing vs Firewall based
Post by: Strator on June 04, 2024, 04:04:26 AM
Do you mean the routing based on a routing table vs PBR (Policy Based Routing)? Note that there are dynamic routing protocols which use routing tables. Anyway, there is always a routing table and I think using PBR should be avoided. PBR is like using "GOTO" in the old days of computer programming.