From owner-freebsd-questions Sat Feb 13 05:04:56 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA05652 for freebsd-questions-outgoing; Sat, 13 Feb 1999 05:04:56 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from awfulhak.org (awfulhak.force9.co.uk [195.166.136.63]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA05645 for ; Sat, 13 Feb 1999 05:04:52 -0800 (PST) (envelope-from brian@Awfulhak.org) Received: from keep.lan.Awfulhak.org (keep.lan.Awfulhak.org [172.16.0.8]) by awfulhak.org (8.8.8/8.8.8) with ESMTP id NAA01071; Sat, 13 Feb 1999 13:00:08 GMT (envelope-from brian@Awfulhak.org) Received: from keep.lan.Awfulhak.org (localhost [127.0.0.1]) by keep.lan.Awfulhak.org (8.9.3/8.9.2) with ESMTP id MAA96914; Sat, 13 Feb 1999 12:59:58 GMT (envelope-from brian@keep.lan.Awfulhak.org) Message-Id: <199902131259.MAA96914@keep.lan.Awfulhak.org> X-Mailer: exmh version 2.0.2 2/24/98 To: nekhbet@rt66.com cc: questions@FreeBSD.ORG Subject: Re: static nat and ipfw not seeing translation In-reply-to: Your message of "Fri, 12 Feb 1999 20:48:25 MST." <19990213034825.6033.qmail@rt66.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 13 Feb 1999 12:59:58 +0000 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Hi. I read David's postings around 1/26 relating to this matter > but I am still having problems. I have a subnet with (not the > real numbers) 200.0.0.1 on the interface card talking to the net. > 200.0.0.3 is the static ip that I want for my other machine whose > internal ip is 192.168.0.3. My gateway nic has the internal address > of 192.168.0.1. These are the rules and the natd command I am using: > > divert natd ip from 192.168.0.3 to any out via tun0 > divert natd ip from any to 200.0.0.3 in from tun0 > divert natd ip from any to any via tun0 > > natd -redirect_address 200.0.0.3 192.168.0.3 -n tun0 [.....] > Any ideas? Thanks in advance. I would have thought the above divert rules would confuse natd - newer versions of the FreeBSD kernel will take the re-injected packet and feed it to the next ipfw rule - making natd process your packets twice. What happens if you remove the first two divert lines ? > -aron warren -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message