![]() Looking at the hostapd source code, I find that there is a hostapd_config_read_maclist() function in config_file.c that parses the files referenced by the accept_mac_file and deny_mac_file configuration values: static int hostapd_config_read_maclist(const char *fname, Has anyone been able to get this MAC VLAN mapping to work? I've tried comma, with and without spaces, but no luck. Hostapd does not say much about how the file accept_mac_file should look like to map MAC VLAN ID. However, after connecting my station with MAC DE:AD:BE:EF:CA:FE, I'm still getting all the traffic on wlan0 and not on vlan.100. On file /etc/hostapd/accept I have included the following: DE:AD:BE:EF:CA:FE vlan.100 # Enable the wireless multimedia extensions # Send empty SSID in beacons and ignore probe request frames that do not specify full SSID ![]() # Enable 40MHz channels with 20ns guard interval I've created a VLAN using: sudo ip link add link wlan0 name vlan.100 type vlan id 100 ![]() Let's assume I only have 1 station (with MAC DE:AD:BE:EF:CA:FE). Set static client MAC address to VLAN ID mapping. Optionally, the local MAC ACL list (accept_mac_file) can be used to I want hostapd to assign each station a given VLAN based on MAC address. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |