Routing table with policy-based routing
-
I understand how policy-based routing makes traffic go to a certain gateway when a certain rule is matched. But I was expecting that a rule with a gateway set (other than default, hence policy-based routing) will automatically add a route to the routing table but I don't see that this is the case. Is this expected behavior?
-
No, routing table is not involved in policy based routing
-
I see. So the rules table is like a supplementary routing table in itself. Thanks.
-
It's more like that the routing process uses information tagged on to the packets traversing the system to detect if a set of packets need special handling and bypasses the normal routing table when it sees those special tags. The firewall rules that match the incoming traffic apply these special tags to the incoming packets.
-
@kpa said in Routing table with policy-based routing:
It's more like that the routing process uses information tagged on to the packets traversing the system to detect if a set of packets need special handling and bypasses the normal routing table when it sees those special tags. The firewall rules that match the incoming traffic apply these special tags to the incoming packets.
Gotcha, that makes more sense. Thanks for the explanation!