From owner-freebsd-questions Mon Feb 15 22:37:18 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA10945 for freebsd-questions-outgoing; Mon, 15 Feb 1999 22:37:18 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from rt66.com ([198.59.118.3]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id WAA10933 for ; Mon, 15 Feb 1999 22:37:16 -0800 (PST) (envelope-from nekhbet@rt66.com) From: nekhbet@rt66.com Received: (qmail 28603 invoked by uid 1000); 16 Feb 1999 06:15:07 -0000 Message-ID: <19990216061507.28602.qmail@rt66.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Brian Somers Cc: nekhbet@rt66.com, questions@FreeBSD.ORG Subject: Re: static nat and ipfw not seeing translation In-Reply-To: Your message of "Mon, 15 Feb 1999 17:58:16 GMT." <199902151758.RAA38912@keep.lan.Awfulhak.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 15 Feb 1999 23:15:07 -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Brian, I tried the -unregistered_only switch and got it working. Then I rebooted again and tried it, but it failed. After trying several combinations it seemed that the order of the natd commands is what is making it work or not. Sounds weird huh? So for anyone who run across this thread, this is what worked for me. 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: natd -n tun0 -redirect_address 192.168.0.3 200.0.0.3 -unregistered_only divert natd ip from any to 200.0.0.3 in from tun0 divert natd ip from 192.168.0.3 to any out via tun0 divert natd ip from any to any via tun0 -aron warren ps. thanks brian. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message