Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Aug 2013 19:19:17 +0700
From:      Olivier Nicole <olivier.nicole@cs.ait.ac.th>
To:        "artem@artem.ru" <artemkuchin76@gmail.com>
Cc:        FreeBSD Net <freebsd-net@freebsd.org>
Subject:   Re: Different providers for different nat clients
Message-ID:  <CA%2Bg%2BBviFey6vXyydtroWc0wPxK%2BZAhSet_=zUQzR836sGT=QzQ@mail.gmail.com>
In-Reply-To: <520A2279.6050600@artem.ru>
References:  <520A2279.6050600@artem.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
Artem,

> I have a strange task and don't understand how to implement such scheme.
>
> There is a router with 3 interfaces:
>
> IF1: PROVIDER A
> IF2: PROVIDER B
> IF3: LAN
>
> Clients served via NAT. There are about 15 clients.
>
> Now, what i need to do:
>
> By default all traffic from all clients goes to PROVIDER A via IF1.
> But, if total incoming traffic for any particular client becomes over X Mb
> then that client
> and only that client must be switch for PROVIDER B. The switch must be
> automatic and must
> not use any software on the client side.
> While i know how to count traffic i don't understand how to route external
> traffic to/from
> nat clients on particular external interface.
>
> Any idea how it is done?

I would think that you have to dynamically change the configuration of
the NAT to associate the client to the IP from provider B.

Now, how you do that depends on the NAT software you are using, that
ou did not say.

Good luck,

Olivier



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2Bg%2BBviFey6vXyydtroWc0wPxK%2BZAhSet_=zUQzR836sGT=QzQ>