SHOREWALL-RTRULES(5) | Configuration Files | SHOREWALL-RTRULES(5) |
NAME¶
rtrules - Shorewall Routing Rules file
SYNOPSIS¶
/etc/shorewall[6]/rtrules
DESCRIPTION¶
Entries in this file cause traffic to be routed to one of the providers listed in shorewall-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.
Caution
Be careful when using rules of the same PRIORITY as some unexpected behavior can occur when multiple rules have the same SOURCE. For example, in the following rules, the second rule overwrites the first unless the priority in the second is changed to 19001 or higher:
10.10.0.0/24 192.168.5.6 provider1 19000 10.10.0.0/24 - provider2 19000
MARK - {-|mark[/mask]}
EXAMPLES¶
Example 1:
#SOURCE DEST PROVIDER PRIORITY MASK
eth1 - ISP1 1000
IPv4 Example 2:
#SOURCE DEST PROVIDER PRIORITY MASK
- 10.8.0.0/24 main 1000
FILES¶
/etc/shorewall/rtrules
/etc/shorewall6/rtrules
SEE ALSO¶
https://shorewall.org/MultiISP.html[2]
https://shorewall.org/configuration_file_basics.htm#Pairs[3]
NOTES¶
- 1.
- shorewall-providers
09/24/2020 | Configuration Files |