SHOREWALL-RTRULES(5) | Configuration Files | SHOREWALL-RTRULES(5) |
NAME¶
rtrules - Shorewall Routing Rules fileSYNOPSIS¶
/etc/shorewall/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.
MARK - {-|mark[/mask]}
EXAMPLES¶
Example 1:#SOURCE DEST PROVIDER PRIORITY MASK eth1 - ISP1 1000
Example 2:
#SOURCE DEST PROVIDER PRIORITY MASK - 10.8.0.0/24 main 1000
FILES¶
/etc/shorewall/rtrulesSEE ALSO¶
http://www.shorewall.net/MultiISP.html[2]http://www.shorewall.net/configuration_file_basics.htm#Pairs[3]
shorewall(8), shorewall-accounting(5), shorewall-actions(5), shorewall-blacklist(5), shorewall-hosts(5), shorewall_interfaces(5), shorewall-ipsets(5), shorewall-maclist(5), shorewall-masq(5), shorewall-nat(5), shorewall-netmap(5), shorewall-params(5), shorewall-policy(5), shorewall-providers(5), shorewall-proxyarp(5), shorewall-routestopped(5), shorewall-rules(5), shorewall.conf(5), shorewall-secmarks(5), shorewall-tcclasses(5), shorewall-tcdevices(5), shorewall-mangle(5), shorewall-tos(5), shorewall-tunnels(5), shorewall-zones(5)
NOTES¶
- 1.
- shorewall-providers
03/16/2017 | Configuration Files |