From owner-freebsd-questions@FreeBSD.ORG Thu Oct 5 22:00:18 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C84E316A403 for ; Thu, 5 Oct 2006 22:00:18 +0000 (UTC) (envelope-from thiago.bsdes@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6EB9643D90 for ; Thu, 5 Oct 2006 21:59:30 +0000 (GMT) (envelope-from thiago.bsdes@gmail.com) Received: by nf-out-0910.google.com with SMTP id n29so1027167nfc for ; Thu, 05 Oct 2006 14:59:28 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=O0lXPVV9R7V/TbRxylnd7c0Ketl35/gCc0biUQK7muU6VSBH1spFxwEn4S/+oSYTcCuaSwkG0SgY47yjWbeCqt+FHSSJA0LgE6QSELFAtqEYqO/aNHlBVjhMSLl0zRAjjqVMdih916F7pUnwwrDrotpXW9FGmQKKACqD69nw5aU= Received: by 10.78.185.7 with SMTP id i7mr982149huf; Thu, 05 Oct 2006 14:59:28 -0700 (PDT) Received: by 10.78.196.8 with HTTP; Thu, 5 Oct 2006 14:59:28 -0700 (PDT) Message-ID: <471361580610051459m7f7c7d3dwa982dddcb139b684@mail.gmail.com> Date: Thu, 5 Oct 2006 18:59:28 -0300 From: "Thiago Rocha" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: FreeBSD and 2 ADSL links X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Oct 2006 22:00:18 -0000 hi! Brazilian I and do not say English, I forgive for any error! I have a FreeBSD Server (5.4). This server links ADSL has two, and I need to balance the load between them, e also case one stops the other keeps the connection. My system is thus: ============== rl0 ----> IP=192.168.2.254/24 / GW for machines in this net is 192.168.2.254- (this is localnet NIC) rl1 ----> IP= 10.0.0.2/30 / GW for this net is 10.0.0.1 - (adsl1) sis0 --> IP= 10.0.1.2/30 / GW for fhis net is 10.0.1.1 - (adsl2) ######################################################################### I have two NATD process, see below: =========================== 318 ?? Ss 0:00.39 /sbin/natd -f /etc/natd.conf -p 8668 -n rl1 1815 ?? Ss 0:00.65 /sbin/natd -f /etc/natd1.conf -p 8669 -n sis0 ######################################################################### And my firewall : ============ ipfw add 10 divert 8668 all from any to 10.0.0.2 via rl1 ipfw add 11 divert 8669 all from any to 10.0.1.2 in via sis0 ipfw add 12 prob 0.5 divert 8668 all from any to any out via rl1 ipfw add 13 divert 8669 all from any to any out via rl1 ipfw add 30 fwd 10.0.0.1 all from 10.0.0.2 to any ipfw add 30 fwd 10.0.1.1 all from 10.0.1.2 to any ######################################################################### and my default route is: 10.0.0.1, I need to make the balancing between these interfaces. when I apply these rules nothing I function. I I followed a manual in the Internet ( http://wiki.luizgustavo.pro.br/doku.php?id=artigos_freebsd:balancelinks), but without success.