<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=big5">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan"><SPAN lang=EN-US
style="FONT-FAMILY: 新細明體; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt"><FONT
size=3>hi~</FONT></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan"><SPAN lang=EN-US
style="FONT-FAMILY: 新細明體; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt"><FONT
size=3></FONT></SPAN> </P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan"><SPAN lang=EN-US
style="FONT-FAMILY: 新細明體; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt"><FONT
size=3>I would like to know how to use MAC address filter using hostapd with
madwifi driver.<?xml:namespace prefix = o ns =
"urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan"><FONT size=3><SPAN
lang=EN-US
style="FONT-FAMILY: 新細明體; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt">I
can use iwpriv to set MAC filter policy, but I cannot use hostapd to achieve the
same goal as iwpriv does. The sample `madwifi.conf` in the hostapd source
directory does not contain the section of MAC-related settings. Dose it mean
that hostapd does not support MAC filtering if madwifi driver is used? The
following</SPAN><SPAN lang=EN-US><FONT face="Times New Roman"> is my
configuration file, and it seems that when both “wpa” and “ieee8021x” are all
set to 0, the hostapd will not enable wireless LAN interface. Could anyone can
provide me the right settings about MAC filtering.</FONT></SPAN></FONT></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan"><FONT
face="Times New Roman" size=3><SPAN lang=EN-US>Any help is greatly
appreciated!!</SPAN></FONT></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan"><FONT
face="Times New Roman" size=3><SPAN
lang=EN-US>
</SPAN></FONT></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan"><FONT
face="Times New Roman" size=3><SPAN
lang=EN-US>
Joseph</SPAN></FONT></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan"><SPAN
lang=EN-US><o:p><FONT face="Times New Roman" size=3> <FONT face=新細明體
size=2>------------------------------------------------------------------</FONT></FONT></o:p></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan"><SPAN lang=EN-US><FONT
face="Times New Roman" size=3>interface=ath0</FONT></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan"><SPAN lang=EN-US><FONT
face="Times New Roman" size=3>driver=madwifi</FONT></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan"><SPAN lang=EN-US><FONT
face="Times New Roman" size=3>logger_syslog=-1</FONT></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan"><SPAN lang=EN-US><FONT
face="Times New Roman" size=3>logger_syslog_level=2</FONT></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan"><SPAN lang=EN-US><FONT
face="Times New Roman" size=3>logger_stdout=-1</FONT></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan"><SPAN lang=EN-US><FONT
face="Times New Roman" size=3>logger_stdout_level=2</FONT></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan"><SPAN lang=EN-US><FONT
size=3><FONT face="Times New Roman">debug=0<SPAN
style="mso-spacerun: yes">
</SPAN><SPAN
style="mso-spacerun: yes"> </SPAN></FONT></FONT></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan"><SPAN lang=EN-US><FONT
face="Times New Roman" size=3># Station MAC address -based
authentication</FONT></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan"><SPAN lang=EN-US><FONT
face="Times New Roman" size=3># 0 = accept unless in deny list</FONT></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan"><SPAN lang=EN-US><FONT
face="Times New Roman" size=3># 1 = deny unless in accept list</FONT></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan"><SPAN lang=EN-US><FONT
face="Times New Roman" size=3># 2 = use external RADIUS server (accept/deny
lists are searched first)</FONT></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan"><SPAN lang=EN-US><FONT
face="Times New Roman" size=3>macaddr_acl=0</FONT></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan"><SPAN lang=EN-US><FONT
face="Times New Roman"
size=3>accept_mac_file=/etc/hostapd.accept</FONT></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan"><SPAN lang=EN-US><FONT
face="Times New Roman" size=3>deny_mac_file=/etc/hostapd.deny</FONT></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan"><SPAN lang=EN-US><FONT
face="Times New Roman" size=3>auth_algs=3</FONT></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan"><SPAN lang=EN-US><FONT
face="Times New Roman" size=3>wpa=0</FONT></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan"><SPAN lang=EN-US><FONT
face="Times New Roman" size=3>wpa_pairwise=TKIP</FONT></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan"><SPAN lang=EN-US><FONT
face="Times New Roman" size=3>ieee8021x=0</FONT></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan"><SPAN lang=EN-US><FONT
face="Times New Roman" size=3>wpa_pairwise=TKIP</FONT></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan"><SPAN lang=EN-US><FONT
face="Times New Roman" size=3>wpa_key_mgmt=WPA-EAP</FONT></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan"><SPAN lang=EN-US><FONT
face="Times New Roman" size=3>own_ip_addr=192.168.12.100</FONT></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan"><SPAN lang=EN-US><FONT
face="Times New Roman" size=3>auth_server_addr=192.168.12.42</FONT></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan"><SPAN lang=EN-US><FONT
face="Times New Roman" size=3>auth_server_shared_secret=radius</FONT></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan"><SPAN lang=EN-US><FONT
face="Times New Roman" size=3>auth_server_port=1812</FONT></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-pagination: widow-orphan"><SPAN lang=EN-US><FONT
face="Times New Roman"
size=3>----------------------------------------------------------</FONT></SPAN></P></FONT></DIV></BODY></HTML>