From owner-freebsd-ipfw Fri Oct 6 21:19:51 2000 Delivered-To: freebsd-ipfw@freebsd.org Received: from mailhost01.reflexnet.net (mailhost01.reflexnet.net [64.6.192.82]) by hub.freebsd.org (Postfix) with ESMTP id C486437B502 for ; Fri, 6 Oct 2000 21:19:49 -0700 (PDT) Received: from 149.211.6.64.reflexcom.com ([64.6.211.149]) by mailhost01.reflexnet.net with Microsoft SMTPSVC(5.5.1877.197.19); Fri, 6 Oct 2000 21:18:33 -0700 Received: (from cjc@localhost) by 149.211.6.64.reflexcom.com (8.11.0/8.11.0) id e974Jko66288; Fri, 6 Oct 2000 21:19:46 -0700 (PDT) (envelope-from cjc) Date: Fri, 6 Oct 2000 21:19:46 -0700 From: "Crist J . Clark" To: achilov@granch.ru Cc: freebsd-ipfw@FreeBSD.ORG Subject: Re: Where I was wrong? Message-ID: <20001006211946.O25121@149.211.6.64.reflexcom.com> Reply-To: cjclark@alum.mit.edu References: <39DDFB0B.22E04412@sentry.granch.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <39DDFB0B.22E04412@sentry.granch.ru>; from shelton@sentry.granch.ru on Fri, Oct 06, 2000 at 11:17:15PM +0700 Sender: owner-freebsd-ipfw@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Oct 06, 2000 at 11:17:15PM +0700, Rashid N. Achilov wrote: > I have a some FreeBSD box, connected to two different ISPs and my own > private network. For example first ISP is 10.0.0.0/24, second > 10.0.1.0/24 and my own network is 10.0.2.0/24, and FreeBSD router has: > 10.0.0.1 to first ISP (10.0.0.2 other side, interface fxp0), 10.0.1.1 to > second (10.0.1.2 other side, interface rl0) and 10.0.2.1 to private > (interface ed0). My box in private is 10.0.2.2 and there are some other > Windozes... > > Default gateway to all is 10.0.1.2 (second ISP other side) > > I wish I could forward all traffic from 10.0.2.2 to first ISP. I made > this rule: > > ipfw add 100 fwd 10.0.0.2 ip from 10.0.2.2 to any out xmit rl0 The 'fwd' command probably does not do what you think. Read ipfw(8) again. I don't understand what you want to do when you say you wish to 'forward all traffic to the first ISP.' Are we just talking about routing here? -- Crist J. Clark cjclark@alum.mit.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ipfw" in the body of the message