Good day!
At work I use MAC filtering, and since I have 100+ PCs, I just use a scheme like this:
I think, it will be good to have ability organize MAC filtering in FreeBSD similar in such way:
Isn't this is good idea?
At work I use MAC filtering, and since I have 100+ PCs, I just use a scheme like this:
- Every new PC adds to an internal database (PC description, MAC address of it interfaces)
- Also every PC is tagged with existing groups (departments in the office)
- When there are changes in that database, a script dynamically creates ipfw rules for every MAC-address
Code:
ipfw add 5 deny all from any to any MAC any 00:11:22:33:44:55 in recv ${LAN}
ipfw add 5 deny all from any to any MAC any 00:11:22:33:44:66 in recv ${LAN}
ipfw add 5 deny all from any to any MAC any 00:11:22:33:44:77 in recv ${LAN}
Code:
ipfw mac-table 1 flush
ipfw mac-table 1 add 001122334455
ipfw mac-table 1 add aabbcc #which means all mac-address aa:bb:cc:*:*:*
ipfw add 1 deny all from ${LAN} to mac-table(1)