Skip to contentSkip to conversation

MAC acl equivalent to iwpriv for nl80211 drivers

DISCUSSION Patrick Bosch 2 participants 2 messages Nov 12, 2014

lore
Share & tools
lore
#0 lore raw

Hello everybody

I hope I do post this in the correct mailing list.

My problem is the following:

I want to add/delete new MAC addresses to the acl without restarting anything. Without restarting I mean that there shouldn't be a time frame where no beacon frames are sent. This happened to me on an OpenWRT router and I want to avoid this effect.

It seems to me that iwpriv offers exactly this functionality. You can add a list of MAC addresses and define how they should be handled. Iw doesn't seem to offer this option. Is there any other way to get this functionality?

Another question would be, if there is a way to forge management frames, similar to what hostapd_cli can do for deauthentication and disassociation frames?

Any help is appreciated!

Kind regards
Patrick

#1 lore raw
Quoted 10 lines · Patrick Bosch

Hello everybody

I hope I do post this in the correct mailing list.

My problem is the following:

I want to add/delete new MAC addresses to the acl without restarting anything. Without restarting I mean that there shouldn't be a time frame where no beacon frames are sent. This happened to me on an OpenWRT router and I want to avoid this effect.

This would be something that should be done with hostapd or whatever is actually managing the AP mode. It looks like the procedure here is to update your "deny MAC" and "accept MAC" files, then issue the hostapd_cli command "SET deny_mac_file /path/to/deny" and "SET accept_mac_file /path/to/accept" commands, which will immediately disconnect any clients that aren't in the ACL, without restarting anything.

Quoted 4 lines

It seems to me that iwpriv offers exactly this functionality. You can add a list of MAC addresses and define how they should be handled. Iw doesn't seem to offer this option. Is there any other way to get this functionality?

iwpriv is simply a driver passthrough, it doesn't offer any functionality other than "push this random data to the driver" in a slightly formatted way. The options are defined by the driver itself. The upstream kernel wifi community is trying very hard to *not* allow this sort of functionality, at least as it has been used in the past with iwpriv, since almost the stuff iwpriv used to do, can be done in a more standard way with 'iw', or should be done elsewhere (wpa_supplicant, hostapd).

Dan

Quoted 5 lines

Another question would be, if there is a way to forge management frames, similar to what hostapd_cli can do for deauthentication and disassociation frames?

Any help is appreciated!