From owner-freebsd-pf@FreeBSD.ORG Sun Jul 18 03:59:18 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 F2DDA1065670 for ; Sun, 18 Jul 2010 03:59:18 +0000 (UTC) (envelope-from thomas.elsgaard@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 85A998FC08 for ; Sun, 18 Jul 2010 03:59:18 +0000 (UTC) Received: by fxm13 with SMTP id 13so1859729fxm.13 for ; Sat, 17 Jul 2010 20:59:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:cc:content-type; bh=U1XS0+HGBMo3Fr3hr9523OltJeU7Tl1/V7ZbA6vlTxg=; b=K6LT3EFjMELU386Ea28G4d78QDggYDdblkClxKk5URovtu9teKpIpbwUXIvutiQPy/ 8OC6YgHol7Oco7KXhWHpX7LI6BhX0BF/KUmLjFkMITmbq4p26LCxvRg0V1WMxlWQyadd MGquvBLYKtj35pBhN4Tuh3k9N16gHYQvny77o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=wAzn/QnCyrPoN/DdguksHKAgYyiSPLgnrC0jF0gEHpl+4neaDXLKA8e6Vy7hukA1u+ cgQx8EoI/meqAs7fENf7Fu6DiQ8dTRIAadghvp+6AFQGbmIapKgGtaftc6+i0SPdwhDM bm7LJdRmgeZTLuhHkkK/qLvuZJvMIdCjf4CwU= MIME-Version: 1.0 Received: by 10.239.137.207 with SMTP id m15mr204362hbm.141.1279425557203; Sat, 17 Jul 2010 20:59:17 -0700 (PDT) Received: by 10.239.154.196 with HTTP; Sat, 17 Jul 2010 20:59:17 -0700 (PDT) Date: Sun, 18 Jul 2010 01:59:17 -0200 Message-ID: From: Thomas Elsgaard To: Torsten Kersandt Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-pf@freebsd.org Subject: -SOLVED- 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: Sun, 18 Jul 2010 03:59:19 -0000 > 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 > > > Hi I manged to solve the problem, here is the solution: pass in on em0 proto udp from 10.5.1.0/24 to port 69 rdr-to 10.0.0.11 port 200001 pass in on em0 proto udp from 10.5.2.0/24 to port 69 rdr-to 10.0.0.11 port 200002 Thanks for the advices Thomas