From owner-freebsd-questions@freebsd.org Fri Apr 1 18:06:34 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3851FB00034 for ; Fri, 1 Apr 2016 18:06:34 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from mail-wm0-x22d.google.com (mail-wm0-x22d.google.com [IPv6:2a00:1450:400c:c09::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C7229106E for ; Fri, 1 Apr 2016 18:06:33 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: by mail-wm0-x22d.google.com with SMTP id p65so2711973wmp.1 for ; Fri, 01 Apr 2016 11:06:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=lJ9hXfPcKqQgDxH5bO7fGBFbyYqopPuMWPjhkFrlpp8=; b=le6qy/T0sxaJglz1YqlDjzARyeDvU7JtJeK4UkejfkIewY5q1DS/riRwnxQ/GMAsFL +k/+PS/eH865K3OyMLCzvBvvx9ltfiHI1YwaNT+n8vqg4i6f4+113CcB5dODZiOZbUrf 5ov5cGIadJAZgyn50ebajd6HqngMsDnZ9Rf/BtvmXu1rjVgP2a94rBxQx+TmrZMfHuVA oNgJN+hY7hIa6SpmzgJygbzz9Zz+rj69XUQCXRxsPC0Mfulog0UQpoBc3y2Zp0Yj7ZLG JXq2c4R1zp50wojrfMktF9pRaVe3QEsbdygS7ejIpEBPKL+d0IlE1+UDAje8nRo140u/ jFXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=lJ9hXfPcKqQgDxH5bO7fGBFbyYqopPuMWPjhkFrlpp8=; b=U0ZDP8UxRWbDXPPqIg1ic931U892V4NeV3/YIMfUjtMEUvnVuXZ+7xOxtUNPB+mYVO gjU6Wf0J1fQrIeBO1CCt+RzNJ5lx04wi8pYym7WdSK8mv9EdGPkj1YES+u4LoD2a+44Y uZJBC9eegrTr387vXgg+Fo3ydbrS8bxy8VeGHF/YYBn7a+5uWDon4Y+1kJTVqBnm5cOQ wAEQUyVwDi3fce/mZT+/QlkxZy7j5QD0rctK6ZuG9eo+DBwxEWi8GEGtRFx7/mMlOXjD UmmUY2Uj4DyZeI08MefjyKUKtpm01vPqplXK7qslwez9ZyyRRlPCH1UB8A2h4gZ61HjM MawQ== X-Gm-Message-State: AD7BkJIexRv84Astrc3RW+Kn3ZlfSTjDhVhHkIQfIFXKikU+DRwlIfIUX5GYS+JZPGIwX7zVw2XonjKjM9C92g== X-Received: by 10.194.61.19 with SMTP id l19mr22799367wjr.4.1459533991911; Fri, 01 Apr 2016 11:06:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.56.200 with HTTP; Fri, 1 Apr 2016 11:05:52 -0700 (PDT) In-Reply-To: References: From: Odhiambo Washington Date: Fri, 1 Apr 2016 21:05:52 +0300 Message-ID: Subject: Re: IPFW Firewall Rule To: Carmel Cc: User Questions Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Apr 2016 18:06:34 -0000 On 1 April 2016 at 13:26, Carmel wrote: > I have two laptops that I use when I travel. I need them to have access > to my LDAP server. I tried configuring this in my IPFW firewall rules, > but they fail: > > #!/bin/sh > cmd="ipfw -q add" > pif="em0" > > ## Lots of rules - truncated > > $cmd allow log tcp from any MAC "0C:54:A5:04:BA:DD" to me 389 in via $pif > setup keep-state > $cmd allow log tcp from any MAC "00:1A:A0:89:CA:EA" to me 389 in via $pif > setup keep-state > > This is the error message repeated twice: > > ipfw: missing ``to'' > > If I substitute an IP address and remove the "any MAC "address" it works > fine. I got this example from a web search. Can anyone tell me what I > am doing wrong? > > Setup OpenVPN on your firewall and connect to it using self-signed certs. Pretty easy! MAC addresses will not work when you are roaming. -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft."