From owner-freebsd-questions@FreeBSD.ORG Sun Nov 14 15:02:34 2004 Return-Path: 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 BEFD516A4CE for ; Sun, 14 Nov 2004 15:02:34 +0000 (GMT) Received: from hp2.euro.net.mk (hp2.euro.net.mk [212.110.94.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id 077F443D45 for ; Sun, 14 Nov 2004 15:02:33 +0000 (GMT) (envelope-from FreeBSD@euro.net.mk) Received: from [212.110.94.68] by hp2.euronet.com.mk (NTMail 7.00.0018/SG1971.09.57a4aa33) with ESMTP id ynkasaaa for freebsd-questions@freebsd.org; Sun, 14 Nov 2004 16:07:48 +0100 Date: Sun, 14 Nov 2004 16:02:28 +0100 From: Perica Veljanovski To: FreeBSD-Questions Message-Id: <20041114154717.9B7C.FREEBSD@euro.net.mk> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.10.02 [en] X-VSMLoop: euronet.com.mk Subject: multi-homed host routing problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Nov 2004 15:02:34 -0000 Hi all I have a fbsd 4.7 box that has 2 nics rl0 & rl1. On rl0 i have a public ip address and on rl1 I have a private 10.20.30.0/24, and I'm running squid proxy for my private ip's. Now i've added a 3rd nic rl2 which has an ADSL router connected to it (another internet source). What I wanted to do is use squid's tcp_outgoing_address to divide traffic by splitting the private ip class with squid's acl's. However this does not work. My question is: How do i route part of the private ip's trough rl0 and the other part trough rl2. Can it be done only by routing or should i use nat (on the rl2 side there is no need for nat, the adsl router has natd)? 10x ahead, -- <>