From owner-freebsd-questions@FreeBSD.ORG Tue Jul 1 15:50:28 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 90CD537B401 for ; Tue, 1 Jul 2003 15:50:28 -0700 (PDT) Received: from tomts24-srv.bellnexxia.net (tomts24.bellnexxia.net [209.226.175.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1677343FE3 for ; Tue, 1 Jul 2003 15:50:27 -0700 (PDT) (envelope-from matt@compar.com) Received: from hermes ([65.95.177.176]) by tomts24-srv.bellnexxia.net (InterMail vM.5.01.05.32 201-253-122-126-132-20030307) with SMTP id <20030701225023.YWSD23872.tomts24-srv.bellnexxia.net@hermes>; Tue, 1 Jul 2003 18:50:23 -0400 Message-ID: <004001c34023$061701f0$1200a8c0@gsicomp.on.ca> From: "Matthew Emmerton" To: , "freebsd-questions@FreeBSD. ORG" References: Date: Tue, 1 Jul 2003 18:49:26 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: Re: Stand-a-lone NAT PGM X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jul 2003 22:50:28 -0000 > I have been looking for NAT program which is not part of some other > program like NATD is part of IPFW or IPNAT is part of IPFILTER or > NAT of user ppp. I can not find any NAT program in the FBSD ports > collection unless I mis-understood some description. If anybody > knows of one please let me know. Yes I know that I can set firewall > rule to pass all packets just to use NAT function, but I don't want > overhead of firewall logic, just simple NAT like PPP NAT function > with out the PPP stuff. The reason you can't find a NAT program in the ports collection is because such a program exists in the base system. natd(8) is a front-end to the libalias(3) library, which implements generic packet aliasing and masqerading functions (aka NAT). > I was wondering if the NAT logic code from user ppp could be copied > and made into stand-a-lone NAT program. My programming ability is > not great so I am asking for opinions on weather this is technical > possible? Thanks Both ppp(8) and natd(8) use the libalias(3) library for NAT functionality. -- Matt Emmerton