From owner-freebsd-pf@FreeBSD.ORG Mon Jul 3 12:15:39 2006 Return-Path: X-Original-To: freebsd-pf@freebsd.org Delivered-To: freebsd-pf@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3BB2E16A415 for ; Mon, 3 Jul 2006 12:15:39 +0000 (UTC) (envelope-from jeankerry@hotmail.com) Received: from bay0-omc1-s3.bay0.hotmail.com (bay0-omc1-s3.bay0.hotmail.com [65.54.246.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 292AA43DB8 for ; Mon, 3 Jul 2006 12:15:32 +0000 (GMT) (envelope-from jeankerry@hotmail.com) Received: from hotmail.com ([65.54.162.82]) by bay0-omc1-s3.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 3 Jul 2006 05:15:31 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 3 Jul 2006 05:15:31 -0700 Message-ID: Received: from 128.40.42.4 by BAY108-DAV10.phx.gbl with DAV; Mon, 03 Jul 2006 12:15:29 +0000 X-Originating-IP: [128.40.42.4] X-Originating-Email: [jeankerry@hotmail.com] X-Sender: jeankerry@hotmail.com From: "Kerry Jean" To: Date: Mon, 3 Jul 2006 13:15:27 +0100 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 X-OriginalArrivalTime: 03 Jul 2006 12:15:31.0830 (UTC) FILETIME=[61205960:01C69E9A] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Redirecting packets to the machine itself X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Jul 2006 12:15:39 -0000 Hi, I am new to FreeBSD and PF. I am porting an application from Linux to = FreeBSD. One aspect is that packets destined for another machine on port = 3322 are also captured by a Linux router and forwarded to port 3323 on = that router. As a result the router will receive and read the packet = while still allowing it to be forwarded. This was done simply in Linux = using iptables with "iptables -t nat -A PREROUTING -p udp --dport = 3322 -j REDIRECT --to-ports 3323" Is this possible in FreeBSD using PF or any of the other firewall = programs? I want PF (or another FreeBSD application) to redirect packets = destined for port 3322 (on any machine) to be redirected to port 3323 on = the local machine but also forwarded to the other machines. Any help would be really appreciated. Regards, Anthony