From owner-freebsd-ipfw@FreeBSD.ORG Mon Feb 13 18:35:16 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 00A9116A420 for ; Mon, 13 Feb 2006 18:35:16 +0000 (GMT) (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 C372843D46 for ; Mon, 13 Feb 2006 18:35:14 +0000 (GMT) (envelope-from linux@giboia.org) Received: (qmail 12786 invoked by uid 98); 13 Feb 2006 18:34:45 -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.029383 secs); 13 Feb 2006 18:34:45 -0000 Received: from unknown (HELO giboia) (10.0.0.95) by adriana.dilk.com.br with SMTP; 13 Feb 2006 18:34:45 -0000 Date: Mon, 13 Feb 2006 16:36:17 -0200 From: Gilberto Villani Brito To: freebsd-ipfw@freebsd.org Message-ID: <20060213163617.79d2695c@giboia> In-Reply-To: <00a701c62fdf$bfe75860$3401a8c0@PCCompaq> References: <00a701c62fdf$bfe75860$3401a8c0@PCCompaq> X-Mailer: Sylpheed-Claws 1.9.14 (GTK+ 2.8.3; i586-mandriva-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: ipnat tcp 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: Mon, 13 Feb 2006 18:35:16 -0000 In your rules, you didn't specify the protocol so the default of ipnat is tcp. For any rule using port, you need specify protocol. Gilberto On Sun, 12 Feb 2006 15:22:26 +0100 "Janne Rockstedt" wrote: > Hi all! > > My ipnat.rules: > map xl1 192.168.0.0/24 -> 0/32 portmap tcp/udp auto > map xl1 192.168.0.0/24 -> 0/32 > map xl1 192.168.0.0/24 -> 0.0.0.0/32 proxy port 500 ipsec/udp > rdr xl1 0/32 port 2222 -> 192.168.0.52 port 2222 > > My: # ipnat -l > map xl1 192.168.0.0/24 -> 0.0.0.0/32 portmap tcp/udp auto > map xl1 192.168.0.0/24 -> 0.0.0.0/32 > map xl1 192.168.0.0/24 -> 0.0.0.0/32 proxy port isakmp ipsec/udp > rdr xl1 0.0.0.0/32 port 2222 -> 192.168.0.52 port 2222 tcp > > > > Why is last raw on ipnat -l showning TCP on port 2222? > I have not used tcp in my ipnat.rules on the port 2222 > > //Jan > _______________________________________________ > 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" >