shorewall-rtrules(5)

NAME

   rtrules - Shorewall Routing Rules file

SYNOPSIS

   /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}
       An ip address (network or host) that matches the source IP address
       in a packet. May also be specified as an interface name optionally
       followed by ":" and an address. If the device lo is specified, the
       packet must originate from the firewall itself.

       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}
       An ip address (network or host) that matches the destination IP
       address in a packet.

       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}
       The provider to route the traffic through. May be expressed either
       as the provider name or the provider number. May also be main or
       254 for the main routing table. This can be used in combination
       with VPN tunnels, see example 2 below.

   PRIORITY - priority[!]
       The rule's numeric priority which determines the order in which the
       rules are processed. Rules with equal priority are applied in the
       order in which they appear in the file.

       1000-1999
           Before Shorewall-generated 'MARK' rules

       11000-11999
           After 'MARK' rules but before Shorewall-generated rules for ISP
           interfaces.

       26000-26999
           After ISP interface rules but before 'default' rule.

       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]}
       Optional -- added in Shorewall 4.4.25. For this rule to be applied
       to a packet, the packet's mark value must match the mark when
       logically anded with the mask. If a mask is not supplied, Shorewall
       supplies a suitable provider mask.

EXAMPLES

   Example 1:
       You want all traffic coming in on eth1 to be routed to the ISP1
       provider.

                   #SOURCE                 DEST            PROVIDER        PRIORITY      MASK
                   eth1                    -               ISP1            1000

   Example 2:
       You use OpenVPN (routed setup /tunX) in combination with multiple
       providers. In this case you have to set up a rule to ensure that
       the OpenVPN traffic is routed back through the tunX interface(s)
       rather than through any of the providers. 10.8.0.0/24 is the subnet
       chosen in your OpenVPN configuration (server 10.8.0.0
       255.255.255.0).

                    #SOURCE                 DEST            PROVIDER        PRIORITY     MASK
                    -                       10.8.0.0/24     main            1000

FILES

   /etc/shorewall/rtrules

SEE 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
       http://www.shorewall.net/manpages/shorewall-providers.html

    2. http://www.shorewall.net/MultiISP.html
       http://www.shorewall.net/MultiISP.html

    3. http://www.shorewall.net/configuration_file_basics.htm#Pairs
       http://www.shorewall.net/configuration_file_basics.htm#Pairs



Opportunity


Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.

Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.


Free Software


Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.

Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.


Free Books


The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.

Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.


Education


Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.

Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.