On Sunday 29 February 2004 1:45 pm, Sasa Stupar wrote: > Hi! > > I have a working router for my network. Is it possible to allow access > to the router by defining a MAC address with iptables? > So basically I need to allow only some users to access internet and not > all. So I want to allow access only to users with certain MAC address > and deny all others. > > Is this possible with iptables and how? Try something like: iptables -A INPUT -s a.b.c.d -m mac --mac aa:bb:cc:dd:ee:ff -j ACCEPT Where a.b.c.d is the IP address and aa:bb:cc:dd:ee:ff is the MAC address of the machine you want to allow access to the firewall system. You need to have compiled mac address matching into your kernel, or loaded the appropriate module. See "man iptables" for more info. Regards, Antony. -- The words "e pluribus unum" on the Great Seal of the United States are from a poem by Virgil entitled "Moretum", which is about cheese and garlic salad dressing. Please reply to the list; please don't CC me.