<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Wireless AP - WPA and MAC-Filtering]]></title><description><![CDATA[<p dir="auto">Hi All,</p>
<p dir="auto">I'm using 1.2-RC3 and thought I'd pick your brains about this one (sorry for the "War and Peace" in advance).</p>
<p dir="auto">I've made the following changes for MAC-Filtering to be enabled:<br />
–------------------------------------------------------------------</p>
<p dir="auto">*** taken from http://cvstrac.pfsense.com/tktview?tn=684 ***<br />
only the following steps were performed.</p>
<p dir="auto"><strong>find this section in /usr/local/www/interfaces_wlan.inc :</strong></p>
<p dir="auto">Enable MAC Filtering</p>
<blockquote></blockquote>
<p dir="auto">Setting this option will enable the use of a mac filterlist to allow/deny association based on mac address</p>
<p dir="auto">&lt;select name="macaddr_acl" class="formfld" id="macaddr_acl"&gt;                        &lt;option &lt;?="" if="" ($pconfig['macaddr_acl']="=" '0')="" echo="" "selected";?=""&gt;value="0"&gt;Allow&lt;/option&gt; &lt;option &lt;?="" if="" ($pconfig['macaddr_acl']="=" '1')="" echo="" "selected";?=""&gt;value="1"&gt;Deny&lt;/option&gt; &lt;option &lt;?="" if="" ($pconfig['macaddr_acl']="=" '2')="" echo="" "selected";?=""&gt;value="2"&gt;Radius&lt;/option&gt;&lt;/select&gt;</p>
<p dir="auto">Setting this to "Allow" will allow all clients in not in deny list, while "Deny" will deny all clients not in allow list.<br />
Radius will cause allow and deny list to be searched and then query radius.</p>
<p dir="auto">*/ ?&gt;</p>
<p dir="auto">**and deletethe comment and end comment lines:</p>
<p dir="auto">Then edit /etc/inc/interfaces.inc</p>
<p dir="auto">and find this section:**<br />
$wpa .= &lt;&lt;&lt;eod&lt;br&gt;interface={$if}<br />
driver=bsd<br />
logger_syslog=-1<br />
logger_syslog_level=0<br />
logger_stdout=-1<br />
logger_stdout_level=0<br />
dump_file={$g['tmp_path']}/hostapd_{$if}.dump<br />
ctrl_interface={$g['varrun_path']}/hostapd<br />
ctrl_interface_group=wheel<br />
#accept_mac_file={$g['tmp_path']}/hostapd_{$if}.accept<br />
#deny_mac_file={$g['tmp_path']}/hostapd_{$if}.deny<br />
#macaddr_acl={$wlcfg['wpa']['macaddr_acl']}<br />
ssid={$wlcfg['ssid']}<br />
debug={$wlcfg['wpa']['debug_mode']}<br />
auth_algs={$wlcfg['wpa']['auth_algs']}<br />
wpa={$wlcfg['wpa']['wpa_mode']}<br />
wpa_key_mgmt={$wlcfg['wpa']['wpa_key_mgmt']}<br />
wpa_pairwise={$wlcfg['wpa']['wpa_pairwise']}<br />
wpa_group_rekey={$wlcfg['wpa']['wpa_group_rekey']}<br />
wpa_gmk_rekey={$wlcfg['wpa']['wpa_gmk_rekey']}<br />
wpa_strict_rekey={$wlcfg['wpa']['wpa_strict_rekey']}<br />
wpa_passphrase={$wlcfg['wpa']['passphrase']}<br />
ieee8021x={$wlcfg['wpa']['ieee8021x']}<br />
#Enable the next lines for preauth when roaming. Interface = wired or wireless interface talking to the AP you want to roam from/to<br />
#rsn_preauth=1<br />
#rsn_preauth_interfaces=eth0<br />
EOD;</p>
<p dir="auto">then remove the # from these lines:</p>
<p dir="auto">#accept_mac_file={$g['tmp_path']}/hostapd_{$if}.accept</p>
<p dir="auto">#deny_mac_file={$g['tmp_path']}/hostapd_{$if}.deny</p>
<p dir="auto">#macaddr_acl={$wlcfg['wpa']['macaddr_acl']}</p>
<p dir="auto">then create the following files in /tmp/:</p>
<p dir="auto">hostapd_ath0.accept (assuming your interface is named ath0)</p>
<p dir="auto">hostapd_ath0.deny (you need to create both even if you only intend to use one of them, however one or both can be empty)</p>
<p dir="auto">then insert mac address(es) into the file(s).</p>
<p dir="auto">–------------------------------------------------------------------</p>
<p dir="auto">some of my config:</p>
<p dir="auto">LAN: fxp0 (192.168.1.100)<br />
WAN: fxp1 (PPPoE) (DHCP - assigned from ISP)<br />
OPT1(WIRELESS): ath0  (D-Link DWL-G520)</p>
<p dir="auto">WIRELESS Config:<br />
Type: Static<br />
Bridge with: LAN<br />
Standard: 802.11g<br />
Mode: Access Point (should this be Infrastructure or Ad-hoc ??)<br />
Allow intra-BSS communication: enabled<br />
Enable WME: enabled<br />
Transmit Power: 99<br />
Channel: 11b/g - 6<br />
WEP: DISABLED<br />
WPA: ENABLED (PSK: ....)<br />
WPA Mode: Both  (should this be one or the other???)<br />
WPA Key Management Mode: Pre Shared Key<br />
Enable MAC Filtering: enabled (Deny selected)<br />
Authentication: Open System Authentication<br />
WPA Pairwise: Both  (should this be one or the other???)</p>
<p dir="auto">All other settings have been left as their default value.</p>
<p dir="auto">I've setup WPA along with MAC-Filtering. It all works OK (frankly, exactly as I want) until restarted. After restart, all works OK still, however WPA (still enabled in GUI) appears to be ignored. It says that MAC-Filtering is still enabled and I have "Deny" selected. Any wireless PC/Laptop can then connect and it says it is "unsecured"</p>
<p dir="auto">I go to "Diagnostics" -&gt; "Edit File", then try and load either (without quotes) "/tmp/hostapd_ath0.accept" OR "/tmp/hostapd_ath0.deny", to my surprise they have each disappeared. I've recreated both, put an entry in "hostapd_ath0.accept" of the form xx:xx:xx:xx:xx:xx  (not sure if case sesitive). After a short time it is OK again but after the it is restarted again they are gone again. Hopefully this back-end will be a front-end in the near future.</p>
<p dir="auto">Am I missing something or is it a combination of settings it doesn't like?<br />
Should the accept and deny files be located elsewhere, eg. /etc/tmp/ ?<br />
Any suggestions on what is the best method or methods for doing this ?</p>
<p dir="auto">I don't want to lock it down too much via DHCP as other PCs and Laptops will come and go in my absence - these won't be wireless.<br />
I can created separate firewall rules for each allowed wireless client, but I don't think I should have to.</p>
<p dir="auto">....maybe I have to live with it until the next full or beta version?</p>
<p dir="auto">Finally, has anyone used the "freeradius" addon package? I don't know much about this but is it worth looking into?</p>
<p dir="auto">Cheers...in advance.&lt;/eod&lt;br&gt;</p>
]]></description><link>https://forum.netgate.com/topic/6560/wireless-ap-wpa-and-mac-filtering</link><generator>RSS for Node</generator><lastBuildDate>Tue, 09 Jun 2026 18:41:40 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/6560.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 28 Nov 2007 02:57:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Wireless AP - WPA and MAC-Filtering on Thu, 29 Nov 2007 21:17:47 GMT]]></title><description><![CDATA[<p dir="auto">MAC-Filtering does not work with my atheros-card…</p>
<p dir="auto">or it's because i noted the MAC like xx:xx:xx:... in the files, but it should be correct, or not ?</p>
]]></description><link>https://forum.netgate.com/post/162538</link><guid isPermaLink="true">https://forum.netgate.com/post/162538</guid><dc:creator><![CDATA[trendchiller]]></dc:creator><pubDate>Thu, 29 Nov 2007 21:17:47 GMT</pubDate></item></channel></rss>