From owner-freebsd-net Mon May 3 19:22:42 1999 Delivered-To: freebsd-net@freebsd.org Received: from pcslink.com (pcslink.com [206.43.160.1]) by hub.freebsd.org (Postfix) with ESMTP id C8BA714D94; Mon, 3 May 1999 19:22:26 -0700 (PDT) (envelope-from ryan@pcslink.com) Received: (from ryan@localhost) by pcslink.com (8.8.7/8.6.12) id TAA22536; Mon, 3 May 1999 19:22:08 -0700 (MST) From: Ryan Mooney Message-Id: <199905040222.TAA22536@pcslink.com> Subject: Re: problem with natd In-Reply-To: <372E5326.74CEDF33@ipc.ru> from "Alexey G. Misurenko" at "May 4, 99 05:53:42 am" To: mag@ipc.ru Date: Mon, 3 May 1999 19:22:08 -0700 (MST) Cc: freebsd-net@FreeBSD.ORG, freebsd-isp@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL31H (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Ok problem is > I have network inetface lnc3 with 2 ip address (A.A.A.A & B.B.B.B) > I want next think: > If destenation address is in X.X.X.X/N > then divert them to natd > else pass throuht lnc3 witout modification > > I try to use next command construction > > % natd -a B.B.B.B > % ipfw flush > % ipfw add 10 divert natd all from any to X.X.X.X/N via lnc3 % ipfw add 10 divert natd all from X.X.X.X/N to any via lnc3 The via is optional, but clarifies things (at least for me) that traffic only gets nat'd on traversing that interface. > % ipfw add 11 pass all from any to any > > And %( This is don't work - I can't see any host in X.X.X.X/N Dumb question, but you CAN see X.X.X.X/N from the BSD box w/o nat right? >-=-=-=-=-=-=-<>-=-=-=-=-=-<>-=-=-=-=-=-<>-=-=-=-=-=-<>-=-=-=-=-=-=-< Ryan Mooney Phone (602)265-9188 PCSLink ryan@pcslink.com Internet Services NT is an excellent choice for managers who need to show that they used up their fiscal year budget for hardware/software expenditures. <-=-=-=-=-=-=-><-=-=-=-=-=-><-=-=-=-=-=-><-=-=-=-=-=-><-=-=-=-=-=-=-> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message