From owner-freebsd-questions@FreeBSD.ORG Thu Jun 7 23:22:40 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 98D14106566B for ; Thu, 7 Jun 2012 23:22:40 +0000 (UTC) (envelope-from bycn82@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 522358FC18 for ; Thu, 7 Jun 2012 23:22:40 +0000 (UTC) Received: by vcbfy7 with SMTP id fy7so755448vcb.13 for ; Thu, 07 Jun 2012 16:22:34 -0700 (PDT) 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=zHIZP6gpJhWHpWV2TAUZYTkXVlQXyXb7uXIYEpsD7P4=; b=l+MJaaGsYx3ukemIhhzgUSYOH/TYohMeYbBVXS1isfoDuDGKmKf20IsNh2PKK5RZNl QA1r8p4w0pf12EeVVG7r1JRoXkOT6j4ZnAFQqqc0+dkSwoC+YKX+BpibvUQWV7vZWKMQ Jd5lU3YumiHwgakdwLVskEA61qkVyoJ0pQn3sFJKatEJutRbM8Lcr88gc88hARR4SiT7 yRrXMXxwrDM6AbaL5R/1jCn9ffpvIkOWcBpekSN0zoeFjkMI6ye0DzygwbdOzWFYnscA 0LivKxoafrgB5nTgJBScVyMQ/pIUwz/MukKACBHywRL+dfwLkBaUQZv7JKV9AutiKwOj dB2g== MIME-Version: 1.0 Received: by 10.52.65.80 with SMTP id v16mr3631770vds.9.1339111354606; Thu, 07 Jun 2012 16:22:34 -0700 (PDT) Received: by 10.220.214.70 with HTTP; Thu, 7 Jun 2012 16:22:34 -0700 (PDT) Date: Fri, 8 Jun 2012 07:22:34 +0800 Message-ID: From: Bill Yuan To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: how to filter network by MAC and IP at the same time X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2012 23:22:40 -0000 hi all, i am using freebsd 9.0 as a firewall and i want to filter the traffic by the mac and the ip at the same time, for example, i only allow my laptop can go throught the firewalll when it's using IP for how to config the firewall rules? I tried to configure the firewall by the rule below , but it doesnt work ipfw add 1 allow all from to any MAC any ipfw add 1 allow all from any to MAC any but it doesnt work. also found the explanation on google, someone already asked this question before. but I did not find the solution for this requirement. can someone tell me how ? thanks in advance. Best Regards, BYCN82