From owner-freebsd-net@FreeBSD.ORG Tue Aug 13 12:20:49 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 5AEA9CCC for ; Tue, 13 Aug 2013 12:20:49 +0000 (UTC) (envelope-from artemkuchin76@gmail.com) Received: from mail-lb0-x22a.google.com (mail-lb0-x22a.google.com [IPv6:2a00:1450:4010:c04::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D328F2240 for ; Tue, 13 Aug 2013 12:20:48 +0000 (UTC) Received: by mail-lb0-f170.google.com with SMTP id r10so5801559lbi.15 for ; Tue, 13 Aug 2013 05:20:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=si23NkBAmCWR6EnynCxwQB7no/OJ5rmkywQ1EONYv3U=; b=iOjrOXkZ+/VAvyDLxMVk0oRYph7poMy0QE+C/VuuTn7HMtDCiJFiY5tPyyhxv2u92G 4L2lRUTomt3d6KxW6277VeZa5TKSb6OWkzS0fww0bpn6HsZeeHCSYTpbdDhF090dsA2r RKdMSnHjjbFbpSUbvTwPNebx9p69oqmRHOqy67alSBEQyV4d+n1PgcHeDg1ohVzvL/Ys xXCTeeXND9PMNT+2QnQsrJi3m4ivVqfL9lyvtqtuV0brWRzX1G/eFzqhjeKaRz8q5feh Z0ZVh61VGEaAEzklWN4ebLaIExRf2I0F3R8m/+zCpW33hgVR2oyPW8lEzSaUbv5XZnX6 +J1g== X-Received: by 10.152.3.42 with SMTP id 10mr3683583laz.22.1376396446760; Tue, 13 Aug 2013 05:20:46 -0700 (PDT) Received: from [192.168.0.12] ([94.228.240.133]) by mx.google.com with ESMTPSA id i9sm13977341laa.3.2013.08.13.05.20.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 13 Aug 2013 05:20:46 -0700 (PDT) Message-ID: <520A249A.8030502@artem.ru> Date: Tue, 13 Aug 2013 16:20:42 +0400 From: "artem@artem.ru" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: Olivier Nicole Subject: Re: Different providers for different nat clients References: <520A2279.6050600@artem.ru> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: FreeBSD Net X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Aug 2013 12:20:49 -0000 13.08.2013 16:19, Olivier Nicole пишет: > 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 Um.. i was planning to use the included natd But i think it has only one external address to use