Using multiple default gateways

Greetings colleagues!

Tell me, is it possible to send a certain uniquely separated traffic through a different network interface, as through the default gateway?

For example, for all networks the default gateway is eth0, but for the 192.168.13.0/24 network is eth1?
Or, for all the default gateway is eth0, but for users of my proxy is eth1?

The keyword to search for is policy based routing, there are multiple approaches to accomplish that (aside from merely letting mwan3 do its job).

3 Likes

You need to do Policy Based Routing and you have 3 options:

  1. mwan3 package
  2. pbr package
  3. a set of rules/routes for each internet connection.
2 Likes