From owner-freebsd-questions@FreeBSD.ORG Wed Apr 14 07:26:51 2004 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 A365E16A4CE for ; Wed, 14 Apr 2004 07:26:51 -0700 (PDT) Received: from www.cray1.de (i.would.like.to.spoof.my.realip.de [64.27.85.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id 494B943D1D for ; Wed, 14 Apr 2004 07:26:51 -0700 (PDT) (envelope-from ubm@u-boot-man.de) Received: from greatsheep.marines (localhost [127.0.0.1]) by www.cray1.de (8.9.3/8.9.3) with SMTP id QAA13670 for ; Wed, 14 Apr 2004 16:26:44 +0200 Date: Wed, 14 Apr 2004 16:31:49 +0200 From: Marc "UBM" Bocklet To: questions@freebsd.org Message-Id: <20040414163149.466483e7.ubm@u-boot-man.de> In-Reply-To: <407CF066.80804@elvandar.org> References: <20040414031512.58c59a08.ubm@u-boot-man.de> <407CF066.80804@elvandar.org> X-Mailer: Sylpheed version 0.9.10 (GTK+ 1.2.10; i386-portbld-freebsd5.2.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: [solved]Re: port redirection with pf 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: Wed, 14 Apr 2004 14:26:51 -0000 On Wed, 14 Apr 2004 10:03:50 +0200 Remko Lodder wrote: > > > > pf.conf:2: syntax error > > pfctl: Syntax error in config file: pf rules not loaded > > > > rdr on $nic proto tcp from any to $my_ext port $portext -> $int_host > port $portint > > Your rdr rule however seems ok. Try using my version and report back.. > Note that he example is a real-working rule on my firewall (OpenBSD > with pf). > > cheers Ok, I solved it. The interface I do the redirection for needs to be the same as the interface the traffic is going to. For example: rdr on tun0 proto tcp from any to tun0 port 21 -> 192.168.0.200 port 21 Thanks for your help, Remko and BSD Neophyte ;-) Bye Marc