From owner-freebsd-questions Mon Sep 21 02:37:47 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA06149 for freebsd-questions-outgoing; Mon, 21 Sep 1998 02:37:47 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from lucy.bedford.net (lucy.bedford.net [206.99.145.54]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA06144 for ; Mon, 21 Sep 1998 02:37:34 -0700 (PDT) (envelope-from listread@lucy.bedford.net) Received: (from listread@localhost) by lucy.bedford.net (8.8.8/8.8.8) id FAA19958; Mon, 21 Sep 1998 05:36:59 -0400 (EDT) (envelope-from listread) Message-Id: <199809210936.FAA19958@lucy.bedford.net> Subject: Re: pppd + natd In-Reply-To: from James Snow at "Sep 18, 98 11:36:50 am" To: sno@teardrop.org (James Snow) Date: Mon, 21 Sep 1998 05:36:59 -0400 (EDT) Cc: freebsd-questions@FreeBSD.ORG X-notice: Copyright (C) 1998, by the author, "Woodchuck" djv@bedford.net X-notice: All rights reserved. X-no-archive: yes Reply-to: djv@bedford.net From: "Woodchuck" X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG James Snow wrote: > > I'm having some trouble getting NAT going over ppp with pppd and natd. > > In this instance, the machines inolved look something like this > > 10.0.0.28 <--> 10.0.0.99/Dialup-IP <--> Dialup Gateway <--> Internet > PC pppd + natd ISP & the rest of the world > machine > > The output to the console as given by the -v option of natd is this: > > In [TCP] 10.0.0.28 -> some.real.net.ip:23 aliased to > 10.0.0.28 -> some.real.net.ip:23 > > Logic dictates, and some stuff I've read confirms, that this is not doing > anything. No change was made to the IP headers on the packets involved. It > should have read > > In [TCP] 10.0.0.28 -> some.real.net.ip:23 aliased to > 10.0.0.99 -> some.real.net.ip:23 ^^^^^^^^^ this doesn't get you anything better. "real.net.ip" will still have no idea who 10.0.0.99 is. In should look more like In [TCP] 10.0.0.28 -> some.real.net.ip:23 aliased to Dialup.ip.real.address -> some.real.net.ip:23 Probably posting /etc/rc.firewall would be helpful. are you starting natd with an interface switch? such as natd -interface ppp0 easy to forget... D. -- Su accion letal comienza en pocas horas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message