From owner-freebsd-questions Thu Jul 12 16:56: 5 2001 Delivered-To: freebsd-questions@freebsd.org Received: from smtp2.cybersurf.net (smtp2.cybersurf.net [209.197.145.112]) by hub.freebsd.org (Postfix) with ESMTP id 4114E37B401 for ; Thu, 12 Jul 2001 16:56:01 -0700 (PDT) (envelope-from 01031149@3web.net) Received: from 3web.net ([209.197.154.24]) by smtp2.cybersurf.net (Netscape Messaging Server 4.15) with SMTP id GGDX5A00.5HT for ; Thu, 12 Jul 2001 17:55:58 -0600 Received: by 3web.net (EzMTS MTSAgent 1.22b Service) ; Thu, 12 Jul 01 17:55:43 -0600 for Received: from 3web.net (10.0.0.2) by 3web.net (EzMTS MTSSmtp 1.50 Service) ; Thu, 12 Jul 01 17:52:02 -0600 for Received: by mandy.rockingd.calgary.ab.ca (sSMTP sendmail emulation); Thu, 12 Jul 2001 17:51:35 -0600 Date: Thu, 12 Jul 2001 17:51:33 -0600 From: Duke Normandin <01031149@3web.net> To: Freebsd Questions Subject: Re: PPP Nat or NATd Message-ID: <20010712175132.A167819@mandy.rockingd.calgary.ab.ca> Mail-Followup-To: Freebsd Questions References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from "John Murphy" on Wed, Jul 11, 2001 at 02:49:56PM X-Envelope-Receiver: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Jul 11, 2001 at 02:49:56PM +0100, John Murphy wrote: > Khalil.Haddad@ubs.com wrote: > > >Hello all, > > > >I have a ppp xDSL connection. I am currently using the internal ppp NAT > >to manage my internat network. For now this system is working as a > >charm. > > > >I would like to ask you wether I should use NATd ? > > > >I am asking myself this because I might in a near future need more NAT > >functions like port redirecting etc ... > > ppp nat does port redirection. From man 8 ppp > nat port proto targetIP:targetPort[-targetPort] aliasPort[-aliasPort] > [remoteIP:remotePort[-remotePort]] > This command causes incoming proto connections to aliasPort to be > redirected to targetPort on targetIP. proto is either ``tcp'' or ``udp''. > I need some clarification please. 'man 8 ppp' is up on my gateway box as I'm writing this post. I also read www.freebsd.org/en_US.ISO8859-1/books/faq/ppp.html and the other relevant docs at freebsd.org. I'm curious about the optional [-targetport], [aliasPort] and [-remotePort] above. I'm trying to dovetail these to an example given at the above URL, as follows: Red Alert example: nat port udp InternalMachine:8675 8675 Does the second '8675' refer to 'aliasPort'? When do you use the '-blah' format? Does the above 'nat' synopsis mean one can use either: nat port proto targetIP:targetPort aliasPort [remoteIP:remotePort] or nat port proto -targetPort -aliasPort [-remotePort] TIA... -- -duke Calgary, Alberta, Canada To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message