From owner-freebsd-ipfw@FreeBSD.ORG Tue Apr 25 13:04:24 2006 Return-Path: X-Original-To: freebsd-ipfw@freebsd.org Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4C16216A413 for ; Tue, 25 Apr 2006 13:04:24 +0000 (UTC) (envelope-from linux@giboia.org) Received: from adriana.dilk.com.br (adriana.dilk.com.br [200.250.23.1]) by mx1.FreeBSD.org (Postfix) with SMTP id 92E0A43D6E for ; Tue, 25 Apr 2006 13:04:19 +0000 (GMT) (envelope-from linux@giboia.org) Received: (qmail 32456 invoked by uid 98); 25 Apr 2006 13:04:30 -0000 Received: from 10.0.0.95 by lda.dilk.com.br (envelope-from , uid 82) with qmail-scanner-1.25-st-qms (uvscan: v4.4.00/v4545. perlscan: 1.25-st-qms. Clear:RC:1(10.0.0.95):. Processed in 0.023663 secs); 25 Apr 2006 13:04:30 -0000 Received: from unknown (HELO giboia) (linux@giboia.org@10.0.0.95) by adriana.dilk.com.br with SMTP; 25 Apr 2006 13:04:30 -0000 Date: Tue, 25 Apr 2006 10:07:54 -0300 From: Gilberto Villani Brito To: freebsd-ipfw@freebsd.org Message-ID: <20060425100754.24eb7d66@giboia> In-Reply-To: <444c2c7c.6e806909.2a41.3c8e@mx.gmail.com> References: <444c2c7c.6e806909.2a41.3c8e@mx.gmail.com> X-Mailer: Sylpheed-Claws 1.0.4 (GTK+ 1.2.10; i586-mandriva-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: question about ipfw syntax X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Apr 2006 13:04:24 -0000 Add this rules: $cmd 00540 divert natd all from any to 5000 in via fxp1 $cmd 00541 divert natd all from 5000 to any out via fxp1 Gilberto On Sun, 23 Apr 2006 21:44:17 -0400 "Tom Cruickshank" wrote: > Hello, > > I_m running Freebsd 6.0 and trying to do port forwarding on port 5000 > using ipfw. > > > > Here is what I currently have. > > Cmd = _ipfw _q add _ > > > > > > $cmd 00530 accept all from any any to 5000 in via fxp0 > > $cmd 00535 accept all from any any to 5000 out via > fxp0 > > /sbin/natd -n fxp0 redirect_port tcp :5000 5000 > > > > > > Would this be the correct method to have port 5000 open on my firewall? > > > > Please let me know. Thanks. > > > > Tom > > > > > -- > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.1.385 / Virus Database: 268.4.5/322 - Release Date: 4/22/2006 > > _______________________________________________ > freebsd-ipfw@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw > To unsubscribe, send any mail to "freebsd-ipfw-unsubscribe@freebsd.org" >