Silly IPFW question.

Mel fbsd.questions at rachie.is-a-geek.net
Mon Sep 24 14:55:42 PDT 2007


On Monday 24 September 2007 23:44:07 Chuck Swiger wrote:
> On Sep 24, 2007, at 2:33 PM, Grant Peel wrote:
> > Is there anyway to make a rule in IPFW that will match MAC
> > addresses instead of IP or port numnbers (and no, I didnt see
> > anything in the docs :-))
>
> Search "man ipfw" for MAC.  Something like this will:
>
>    ipfw add 10 deny MAC any 10:20:30:40:50:60
>
> ...block any traffic from that ethernet address.  Be aware of the
> net.link.ether.ipfw sysctl needed and advice in the section "PACKET
> FLOW".

Ok, been too long since I played with IPFW obviously.

-- 
Mel


More information about the freebsd-questions mailing list