From owner-freebsd-questions@FreeBSD.ORG Thu Nov 8 12:23:25 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 82D91508 for ; Thu, 8 Nov 2012 12:23:25 +0000 (UTC) (envelope-from sam.gh1986@gmail.com) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 2E6858FC0C for ; Thu, 8 Nov 2012 12:23:25 +0000 (UTC) Received: by mail-vc0-f182.google.com with SMTP id fw7so3511580vcb.13 for ; Thu, 08 Nov 2012 04:23:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=q13om9BehQl3sgj6BjGO7Jdtgf2AQe7dH1HChAQISDg=; b=RfHM644HdPlxASPmRF/JA6VhrvgmsCxsma3mtoaP+oeclZKGoSC//oS+SgX9YMFcXh ituy2XzKscZ/Bc7lC/g76ZIgU/fVvXdkTjBSNg+OgvE1H9TtQFVcZFlo6WSmx06KMFzz MVfQpbjnn/eTfEG2ZZD9g9bvKP++zf04+PySIoig6X1Nir4Z3VURlLgFNetv+PI7PWKY EDW8Cu9FOyiFxSqD3E6Bnj/88LQD0UNAMCq56L7BQ5XZOT2oy0JMfwmDEYddX2jdyo8Q dXT4tzoatMvCr9X0+YbKWnTlcbDf4DhY54obRsORMaqlDNXhxJdjI9bdvTTMhRPOV1LY x/Xg== MIME-Version: 1.0 Received: by 10.58.94.109 with SMTP id db13mr1836095veb.39.1352377404343; Thu, 08 Nov 2012 04:23:24 -0800 (PST) Received: by 10.58.196.230 with HTTP; Thu, 8 Nov 2012 04:23:24 -0800 (PST) Date: Thu, 8 Nov 2012 15:53:24 +0330 Message-ID: Subject: getting packets on a specific port by pf From: s m To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Nov 2012 12:23:25 -0000 hello guys i have a problem with getting packets which are diverted to a specific port by PF. i mean i diverted my packets to a specific port by IPFW and want to get these packets by PF to change them. i used "ipfw add 1000 divert 8000 all form any to any" command to divert my packets. how can i get these packets by pf on port number 8000? pf has "divert-reply" option. should i use it to get packets? how? any comments or hints are really appreciated. thanks, sam