From owner-freebsd-questions Wed Jan 15 10:10:10 2003 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 8CA7937B401 for ; Wed, 15 Jan 2003 10:10:08 -0800 (PST) Received: from mail.bg (dialup59.varna.spnet.net [213.169.38.59]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2C54643F3F for ; Wed, 15 Jan 2003 10:10:05 -0800 (PST) (envelope-from dpenev@mail.bg) Received: from mail.bg (localhost [127.0.0.1]) by mail.bg (8.12.6/8.12.6) with ESMTP id h0FI9bq4001887; Wed, 15 Jan 2003 20:09:37 +0200 (EET) (envelope-from dpenev@mail.bg) Received: (from dpenev@localhost) by mail.bg (8.12.6/8.12.6/Submit) id h0FI9Ubh001884; Wed, 15 Jan 2003 20:09:30 +0200 (EET) Date: Wed, 15 Jan 2003 20:09:29 +0200 From: Dancho Penev To: "Alvaro Rosales R." Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Questions Message-ID: <20030115180929.GA512@earth.dpsca.bg> Mail-Followup-To: "Alvaro Rosales R." , freebsd-questions@FreeBSD.ORG References: <3E252699.26400.569E3A9@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <3E252699.26400.569E3A9@localhost> User-Agent: Mutt/1.4i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Jan 15, 2003 at 09:15:05AM -0500, Alvaro Rosales R. wrote: >From: "Alvaro Rosales R." >To: freebsd-questions@FreeBSD.ORG >Date: Wed, 15 Jan 2003 09:15:05 -0500 >Subject: Questions > >Hi fellows . >Is it posible to have a box with 2 default gateways?, if thew answer is No. FreeBSD box can have only one default gateway. >yes, is it posible to route the packages based on the IP source address Take a look to ipfw manual page for "fwd" rule action. >of the clients? .For example: > >bsd BOX with 2 nics ( actin as router) >nic1 10.10.1.10 default gw 10.10.1.1 >nic2 200.37.53.5 default gw 200.37.53.1 > >client1 10.10.1. 5 default gw 10.10.1.1 > >client2 10.10.1.22 default gw 10.10.1.1 > >If client1 connects to 10.10.1.1 the packets sould be routed trough nic2 >of the multihomed BSD BOX > >If client2 connects to 10.10.1.1 the packets sould be routed trough nic1 >of the multihomed BSD BOX. > >Thanks in advance for your help > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-questions" in the body of the message -- Regards, Dancho Penev To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message