how to reject all mac addresses except some mac addresses using ipfw?

Chuck Swiger cswiger at mac.com
Tue Jun 24 18:23:17 UTC 2008


On Jun 24, 2008, at 10:26 AM, Yavuz Maslak wrote:
> 1- I want to fix an ip address for each mac address. But some pc and  
> servers have more than an ip address. How can I map multiple ip  
> addresses for a mac address?

Most people use ifconfig, perhaps indirectly via /etc/rc.conf.

> 2- I want to allow these fixed mac addresses using ipfw. After that  
> I want to deny all mac address via the server's local ethernet  
> card.  How can I do these cases?

Few choose to go that route, but you can disable ARP and set up /etc/ 
ethers, or you could even fire up your favorite firewall (IPFW, PF,  
whatever), and add allow rules for the permitted MAC addresses, and  
deny all others.

-- 
-Chuck



More information about the freebsd-questions mailing list