From owner-freebsd-net@FreeBSD.ORG Thu May 16 08:30:17 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 15F13F07 for ; Thu, 16 May 2013 08:30:17 +0000 (UTC) (envelope-from carlopmart@gmail.com) Received: from mail-we0-x22e.google.com (mail-we0-x22e.google.com [IPv6:2a00:1450:400c:c03::22e]) by mx1.freebsd.org (Postfix) with ESMTP id AA78778B for ; Thu, 16 May 2013 08:30:16 +0000 (UTC) Received: by mail-we0-f174.google.com with SMTP id x53so2417361wes.19 for ; Thu, 16 May 2013 01:30:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=jADUHKlZu77R7gHsyhSCzFIgj9hoCVj5GkjY9//GjrI=; b=mJBqmIYNoUBThr3+Swt/K1SlT0cCwSTbfQMGRp1sBXyJW6KXcvxB4BMSuFO7Qbw8sD 37s0YbDZKE5Agk4v22+lBilAfacRxQ2JIK4L2Z2KYCuEyMSOlewdi0oh/4Iw6QJeboCO JdnBQiWxhq2MSjDYNKX5Hqy3I6QWhsPI8ZGuFI0mnMFlES+SNdm0WLffOQDzxmL/4okI IJ3caIIRPr+GPljWgEApd/ElE2Bsm82Mn7FxMewuZM0aYpnFmMPxHgnp3STNEzJtZ7mB 7qI3CHPSrXhXDmTmc2TvF0XL4MAOyIvmSwAi5R6AP2PGXx/XkwfE3mPGc/aRvgkcHcds wXGQ== MIME-Version: 1.0 X-Received: by 10.180.185.207 with SMTP id fe15mr21908666wic.33.1368693015844; Thu, 16 May 2013 01:30:15 -0700 (PDT) Received: by 10.194.71.34 with HTTP; Thu, 16 May 2013 01:30:15 -0700 (PDT) Date: Thu, 16 May 2013 08:30:15 +0000 Message-ID: Subject: Applying filters to bridge interfaces From: "C. L. Martinez" To: freebsd-net@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 May 2013 08:30:17 -0000 Hi all, Is it possible to apply filters (something like bpf does) to a bridge interfaces in FreeBSd 9.1? I have one bridge interface configured with span options. I would like to "filter" traffic that cross this bridge and redirect some traffic to one span port and another traffic to the other. For example: My bridge interfaces is configured like this: ifconfig_bridge0="addm em0 addm em1 span em3 span 4 up" I would like to redirect traffic that comes and arrives to/from IP 10.1.1.1 to span port in em3, and redirect only 'vlan' traffic to span port in em4 ... Is this possible?? Or is it a stupid question?? Thanks.