From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 12 21:12:10 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 64C8316A4E1 for ; Sat, 12 Aug 2006 21:12:10 +0000 (UTC) (envelope-from artifact.one@googlemail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 232A443D45 for ; Sat, 12 Aug 2006 21:12:05 +0000 (GMT) (envelope-from artifact.one@googlemail.com) Received: by nf-out-0910.google.com with SMTP id g2so1508173nfe for ; Sat, 12 Aug 2006 14:12:04 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=googlemail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=aV6W46Asgzmvn3d0KZWbeFCeK3YolSfQpl1gE4Cs2E8RnYSGQll8q2CdGzhragKTxOenc+DJxuOAt6rONbVzdVsRrb5kE7vsLnVqeQDkMPOTakj8b0np2lQ1kDp5HoMSVtoT0PximTwXEt1nO2BSCaLCKdNIyM2kF3ct8fWd5LU= Received: by 10.78.159.7 with SMTP id h7mr2697436hue; Sat, 12 Aug 2006 14:12:04 -0700 (PDT) Received: by 10.78.43.9 with HTTP; Sat, 12 Aug 2006 14:12:04 -0700 (PDT) Message-ID: <8e96a0b90608121412u50d9add8g8e3573990134ae2c@mail.gmail.com> Date: Sat, 12 Aug 2006 22:12:04 +0100 From: "mal content" To: "Max Laier" In-Reply-To: <200608121935.33395.max@love2party.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <8e96a0b90608120936q67a5365vcc97217b44a272c0@mail.gmail.com> <200608121935.33395.max@love2party.net> Cc: freebsd-hackers@freebsd.org Subject: Re: Packet filtering on tap interfaces X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Aug 2006 21:12:10 -0000 On 12/08/06, Max Laier wrote: > > This is because the packets never make it to the IP-Layer (where our > packet filters normally hook into). You can try to use if_bridge(4) to > bridge tap0 and fxp0. if_bridge(4) offers extensive means of packet > filtering described in the man page in great detail. > Ah, thanks, I didn't know that existed (and I've even got the kernel module loaded for some reason). If I'm understanding that manual page correctly, I would put pf rules on 'bridge0', yes? MC