From owner-freebsd-net@FreeBSD.ORG Sun Dec 7 19:16:05 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6C90C16A4CE for ; Sun, 7 Dec 2003 19:16:05 -0800 (PST) Received: from relay.pair.com (relay.pair.com [209.68.1.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 19A3443FBD for ; Sun, 7 Dec 2003 19:16:02 -0800 (PST) (envelope-from silby@silby.com) Received: (qmail 9349 invoked from network); 8 Dec 2003 03:16:00 -0000 Received: from niwun.pair.com (HELO localhost) (209.68.2.70) by relay.pair.com with SMTP; 8 Dec 2003 03:16:00 -0000 X-pair-Authenticated: 209.68.2.70 Date: Sun, 7 Dec 2003 21:15:59 -0600 (CST) From: Mike Silbersack To: Dan Constantinescu In-Reply-To: <000601c3bd22$eea7fbf0$0a00a8c0@Nass> Message-ID: <20031207211448.D96687@odysseus.silby.com> References: <000601c3bd22$eea7fbf0$0a00a8c0@Nass> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-net@freebsd.org Subject: Re: Translate MAC address to IP address X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Dec 2003 03:16:05 -0000 On Mon, 8 Dec 2003, Dan Constantinescu wrote: > My name is Dan , and i would ask you for help...how can i filter users > from a LAN to acces internet throuh a freebsd server (i've installed it) > by MAC? Or i need a script to bind ip to mac? Thank's Dan. If you're running a recent release of freebsd (4.8 or later should do), you can recompile your kernel with IPFW2, which supports filtering by mac addresses; see the ipfw manpage for more information. IPFW2 is the default in 5.x, so you wouldn't need to recompile if you're running 5.x. Mike "Silby" Silbersack