Hi, hope someone can point me in the right direction.
I have a network that has a normal default gateway 0.0.0.0/0 → (10.10.65.1).
But I would like 1 particular IP(10.10.66.85/32) off one of my other interfaces to use an alternate default gateway (10.0.0.2).
I’ll assume that I need to do some pre-routing/marking. But what is the order of things I need to do to generally make it work ??
I’ll assume that I need to do some pre-routing/marking. But what is the order of things I need to do to generally make it work ??
That is exactly what you need to do. You mark with routing-marks in prerouting, and install a route for that routing-mark via the gateway you want traffic to go out.
That’s it. Unless you also will get connections established by hosts behind that gateway inbound to 10.10.66.85 - in which case you just need to add connection-marks on those inbound connections via the interface 10.0.0.2 is reachable through, and then add the same routing marks for connections with that connection-mark.