From owner-freebsd-pf@FreeBSD.ORG Sat Jul 17 22:10:39 2010 Return-Path: Delivered-To: freebsd-pf@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 760811065670 for ; Sat, 17 Jul 2010 22:10:39 +0000 (UTC) (envelope-from torsten@cnc-london.net) Received: from mailhost.cnc-london.net (mailhost.cnc-london.net [209.44.113.195]) by mx1.freebsd.org (Postfix) with ESMTP id 0C2138FC19 for ; Sat, 17 Jul 2010 22:10:38 +0000 (UTC) Received: (qmail 35001 invoked by uid 90); 17 Jul 2010 23:10:36 +0100 Received: from 78-105-9-127.zone3.bethere.co.uk (torsten@cnc-london.net@78-105-9-127.zone3.bethere.co.uk) by mailhost.cnc-london.net (envelope-from , uid 82) with qmail-scanner-2.05st (clamdscan: 0.95.1/9472. perlscan: 2.06st. Clear:RC:1(78.105.9.127):. Processed in 0.038831 secs); 17 Jul 2010 22:10:36 -0000 Received: from 78-105-9-127.zone3.bethere.co.uk (HELO torstenWIN7) (torsten@cnc-london.net@78.105.9.127) by mailhost.cnc-london.net with SMTP; 17 Jul 2010 23:10:36 +0100 From: "Torsten Kersandt" To: References: In-Reply-To: Date: Sat, 17 Jul 2010 23:09:23 +0100 Message-ID: <011b01cb25fc$b78d2ce0$26a786a0$@net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Acsl/BEn0l4gjZ0gSX+8R98BODtXiAAAFqTQ Content-Language: en-gb Subject: RE: How to do PAT based on source IP network and port ? 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: Sat, 17 Jul 2010 22:10:39 -0000 Hi I am wondering how i can get pf to do a PAT based on source IP network? Traffic from 10.5.1.0/24 towards UDP port 69 should be mapped to port 20000 instead of port 69 Traffic from 10.5.2.0/24 towards UDP port 69 should be mapped to port 20001 instead of port 69 Traffic is accessing a service on the same server where pf is running. Is this possible with pf? Thomas _______________________________________________ freebsd-pf@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-pf To unsubscribe, send any mail to "freebsd-pf-unsubscribe@freebsd.org" HI I think that's a easier one rdr pass on $ext_if proto udp from any to $ext_if port 20000 -> 127.0.0.1 port 69