PDA

Bekijk de volledige versie : MAC filter list from database



hugies
21-08-2006, 20:28
Hello,
we are running WL500g Deluxe in router mode and using MAC filtering for wlan stations.
Is possible to import this MAC filter list from some kind of database which will be maintained centrally?
Can I, for example, copy some file with MAC filter list to the router (via nfs or telnet or something else) and then run some command on router to apply the change?
Or can it be checked directly against sql?

Petr

hugies
03-09-2006, 07:47
OK, nobody knows? Or it is impossible ?

artp
15-11-2007, 09:36
Hello, I have this qestion too... Do You know the answer now?

hugies
15-11-2007, 12:12
Hi,
no, still only manual work :(

Petr

ImoTh3P
16-11-2007, 21:41
Maybe that:


iptables -A MACS -m mac --mac-source xx:xx:xx:xx:xx:xx -j RETURN


in your post-firewall file

or with a script (put all the mac@ in a file, ie maclist):


#!/bin/sh
for mac in $(cat /path/to/file/maclist)
do
iptables -A MACS -m mac --mac-source $mac -j RETURN
done

hugies
22-11-2007, 19:59
ImoTh3P,
it looks like the best solution. For some reason I was thinking only about altering Wlan security (Allower MAC addresses list), but iptables -based solution might be even better.
Thanks!

Petr

ImoTh3P
23-11-2007, 19:56
In fact, the web based method juste write an iptables rules in the MAC chain...
If this chain doesn't exist, you'will had to create it before (iptables -L)