From owner-freebsd-questions@FreeBSD.ORG Mon Feb 27 08:01:58 2006 Return-Path: X-Original-To: questions@freebsd.org 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 7D84116A420 for ; Mon, 27 Feb 2006 08:01:58 +0000 (GMT) (envelope-from bernt@bah.homeip.net) Received: from amsfep14-int.chello.nl (amsfep14-int.chello.nl [213.46.243.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A658243D46 for ; Mon, 27 Feb 2006 08:01:57 +0000 (GMT) (envelope-from bernt@bah.homeip.net) Received: from [213.200.137.21] by amsfep14-int.chello.nl (InterMail vM.6.01.04.04 201-2131-118-104-20050224) with ESMTP id <20060227080155.EVRO29749.amsfep14-int.chello.nl@[213.200.137.21]>; Mon, 27 Feb 2006 09:01:55 +0100 Message-ID: <4402B1F1.8080900@bah.homeip.net> Date: Mon, 27 Feb 2006 09:01:53 +0100 From: B H User-Agent: Mozilla/5.0 (X11; U; FreeBSD-4.10-RELEASE; sv-SE) X-Accept-Language: sv, en-us, en MIME-Version: 1.0 To: Frank Staals , questions@freebsd.org References: <43FF68DF.4050709@gmx.net> <4400CEBC.2010707@gmx.net> In-Reply-To: <4400CEBC.2010707@gmx.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: Redirecting Traffic with PF X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Feb 2006 08:01:58 -0000 Frank Staals skrev: > Noel Jones wrote: > >> On 2/24/06, Frank Staals wrote: >> >> >>> Hey, >>> >>> I have an FreeBSD server/firewall running 5-Stable with PF. I want to >>> redirect all udp traffic on port 27902 from the internet to a computer >>> in my network. I used this rule but I have some problem with it: >>> sometimes connections on that port are refused and I can't connect with >>> other players ( it's for a online game ) : >>> >>> rdr on $extif inet proto udp from any port 27902 -> 192.168.2.11 port >>> 27902 Portmapping and redirections are set with ipnat. In your ipnat.rules - or whatever you call it - put something like this: rdr fxp0 0.0.0.0/0 port 80 -> 10.0.0.2 port 80 tcp Change to suite yor setup.