/etc/shorewall6/rtrules
Entries in this file cause traffic to be routed to one of the providers listed in shorewall6-providers[1](5).
The columns in the file are as follows.
SOURCE (Optional) - {-|interface|address|interface:<address>}
Beginning with Shorewall 4.5.0, you may specify &interface in this column to indicate that the source is the primary IP address of the named interface.
Beginning with Shorewall 4.6.8, you may specify a comma-separated list of addresses in this column.
DEST (Optional) - {-|address}
If you choose to omit either SOURCE or DEST, place "-" in that column. Note that you may not omit both SOURCE and DEST.
Beginning with Shorewall 4.6.8, you may specify a comma-separated list of addresses in this column.
PROVIDER - {provider-name|provider-number|main}
PRIORITY - priority[!]
1000-1999
11000-11999
26000-26999
Beginning with Shorewall 5.0.2, the priority may be followed optionally by an exclaimation mark ("!"). This causes the rule to remain in place if the interface is disabled.
MARK - {-|mark[/mask]}
Example 1:
#SOURCE DEST PROVIDER PRIORITY MASK
eth1 - ISP1 1000
/etc/shorewall6/rtrules
http://www.shorewall.net/MultiISP.html[2]
shorewall6(8), shorewall6-accounting(5), shorewall6-actions(5), shorewall6-blacklist(5), shorewall6-hosts(5), shorewall6-interfaces(5), shorewall6-maclist(5), shorewall6-netmap(5),shorewall6-params(5), shorewall6-policy(5), shorewall6-providers(5), shorewall6-routestopped(5), shorewall6-rules(5), shorewall6.conf(5), shorewall6-secmarks(5), shorewall6-tcclasses(5), shorewall6-tcdevices(5), shorewall6-mangle(5), shorewall6-tos(5), shorewall6-tunnels(5), shorewall6-zones(5)