Legacy productThe WF1740 described here is an old product and no longer supplied. Please see details of current FireBrick products.
FireBrick 105
Manuals
Home
Setup Users Status Profiles Shape Speed Subnet Route IP Port Filters Mapping Tunnel

Weighted rules

Routing and Mapping rules can include a weighting factor between 0% and 100% which allows the rule to be applied randomly with a specific chance. This feature can be useful when load sharing traffic between different ISPs or different servers.

To use the feature you make a number of rules, each with the same criteria (IP, port/protocol, etc) and each with its required destination. You then set a weighting on each rule.

For example, if you had two ISPs, you may make two rules (after subnets) routing to each gateway and NATing your traffic. Each rule may have a weighting on 50% making half the sessions go via one ISP and half via the other. If you needed to bias the weighting, e.g. one was a 2Mb link and the other a 500Kb link, you might want to have the rules weigthed 80% and 20%. If you had four equal rules you could set 25%, 25%, 25% and 25% to give each an equal chance.

When setting up weighted rules you should follow these basic guidelines :-

Fallback

If you make your rules dependant on a profile, for example a ping profile that checks that the corresponding server or ISP or router is working, then you can ensure that only rules which will work are considered. This is a very useful feature when using load sharing as it ensures that the load is shared between the working options.

The FireBrick will consider inactive rules that would otherwise match when trying to find a set of rules making at least 100%. This means that if you had, say, five options each of 20% and one was inactive then the remaining four would be considered equally as if they were all 25%. This means the set of rules is still applied as long as at least one of the rules is active. If all of the rules in a set are inactive then later rules are considered as normal.

Technical Reference