From owner-freebsd-pf@FreeBSD.ORG Mon Apr 11 13:20:43 2005 Return-Path: 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 36DF116A4CE for ; Mon, 11 Apr 2005 13:20:43 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id CD71B43D4C for ; Mon, 11 Apr 2005 13:20:40 +0000 (GMT) (envelope-from valenok@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so1555932wri for ; Mon, 11 Apr 2005 06:20:37 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=Z90d5y5+BsLflC4CtJbhma4gsWP16LvbKKPqMnHieFMVeXpBNexTlgQVhAm/N40xWybGA5pb5zwX95Yrj6PKoqD8LkP1tIRJN6g6DSiVkprEpEHK677ZgM+WsUu2X19eujv3tYFOK0h1bzdKFgYDLNkqPleLaf1pk8LcU1SpdqE= Received: by 10.54.46.7 with SMTP id t7mr3635421wrt; Mon, 11 Apr 2005 06:20:37 -0700 (PDT) Received: by 10.54.44.57 with HTTP; Mon, 11 Apr 2005 06:20:36 -0700 (PDT) Message-ID: <72c3a957050411062060eea5cc@mail.gmail.com> Date: Mon, 11 Apr 2005 13:20:36 +0000 From: Sergey Lyubka To: freebsd-pf@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: pf + bridge X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Sergey Lyubka 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, 11 Apr 2005 13:20:43 -0000 Hi. I am trying to build a transparent filtering box. Box is running freebsd 5.4, pf and bridge, this is the setup: in | | em0, 0.0.0.0 ----- | | | | | | ----- | | em1, 10.0.0.1 Bridge config: sysctl net.link.ether.bridge.enable=1 sysctl net.link.ether.bridge_ipf=1 sysctl net.link.ether.bridge.config=em0,em1 PF config: int="em0" ext="em1" rdr on $int inet proto tcp from any to any port 80 -> 127.0.0.1 port 8080 So, pf redirects http traffic to a web proxy. The IP address on em1 is needed so the proxy can do web requests by itself. The problem with that setup is that I can see no packets redirected. Any points? Thanks, Sergey