Re: Advice on multiple interfaces

Russel
2006-02-17T20:37:27Z

> ISP1: Static IP, Fixed guaranteed bandwidth, expensive, want to keep
> for VOIP.
> ISP2: ADSL, dhcp, cheap, want to route outgoing browsing traffic so
> guests and staff do not load ISP1.
> ISP3: Cable internet, reserved IP, cheap, lousy quality, want to serve
> internal webcam on it.

You''ll need to setup your ISPs in the providers file.  The settings in
the tcrules file are used direct traffic out of a particular interface.
This should be pretty straight-forward.  Here is an example of what your
tcrules file might look like:

# MARK    SOURCE                        DEST        PROTO
3:P                webcam-ip-address       0.0.0.0/0    all
2:P
list-of-ip-addresses-or-subnets-for-clients-to-surf-the-web    0.0.0.0/0
all
1:P                ip-address-of-VOIP-devices    0.0.0.0/0    all

This example will mark all trafic originating from the webcam-ip-address
with a 3 - which will direct that traffic to ISP 3 (your cable internet
provider).  Everything from your client''s will get sent out through #2,
and all VOIP stuff will go over #1.

When the tcrules file is evaluated, it is the last match that is used.
Keep that in mind if you have problems with traffic heading out through
the wrong interface.  You would also need to setup your providers in the
providers file.  With my particular setup, I wasn''t doing any load
balancing, but I was advised to use the track and balance options in the
providers file.  The track option requires certain kernel options
(CONNMARK target and connmark match support).

Hope that points you in the right direction.

RUSSEL RILEY