hey guys, i’m new here to the forums, but not really new to MikroTik…we’ve been using them at work for quite a while, i use MikroTik on my home network, and i just recently got the 3 MikroTik advanced certs. i’m running an RB493G with an R52Hn wireless card to handle 2.4Ghz wifi duties.
however, i have not yet figured out a way to retain a list of the MAC addresses for devices that are connecting (or attempting to connect) to my wlan1 interface.
i have a connect list set up with a list of MAC addresses that i have specifically allowed to connect on wlan1, and put the following entry at the very bottom to disallow connections from any MAC addresses other than the ones that i have specifically allowed. the devices that are allowed are set up exactly the same as this last rule, except with connect=yes, and with the actual MAC address listed, instead of 00:00:00:00:00:00
/interface wireless connect-list
add area-prefix="" comment="Drop everything not listed above" connect=no disabled=no interface=wlan1 mac-address=00:00:00:00:00:00 security-profile=default signal-range=-120.120 ssid="" wireless-protocol=any
as i understand it, this last rule should prevent any other wireless devices from even being able to associate with my wireless interface…however, checking the log, i see a ton of entries (mostly from the same MAC address) which state the following:
May/19/2011 16:51:54 | wireless info | wlan1: data from unknown device 00:20:00:57:91:91, sent deauth
according to Arul John’s MAC Lookup Tool, this MAC address is a Lexmark device…in all likelihood, a Lexmark wireless printer from one of my neighbors.
what i want to do is create a permanent list of the MAC addresses of all devices attempting to connect to my wlan1 interface.
i tried setting up a mangle rule that marks all connections on the wlan1 interface and adds it to a list called “MAC Associations”:
/ip firewall mangle
add action=add-src-to-address-list address-list="MAC Associations" address-list-timeout=0s chain=prerouting disabled=no in-interface="wlan1" src-mac-address=!00:00:00:00:00:00
notice the “not” (!) just before the MAC of 00:00:00:00:00:00, indicating for it to put any MAC address on the list except “00:00:00:00:00:00”. this rule works, but it only shows the IP address…no MAC address.
i am not running a hotspot on the unit, and would rather not do so if i don’t have to…just want to keep everything it’s running down to a minimum.
anyone have any ideas on the easiest way to accomplish this?