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 withconnect=yes, and with the actual MAC address listed, instead of 00:00:00:00:00:00
Code:Select all
/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
Code:Select all
May/19/2011 16:51:54 | wireless info | wlan1: data from unknown device 00:20:00:57:91:91, sent deauth
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":
Code:Select all
/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
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?