Chinaunix首页 | 论坛 | 博客
  • 博客访问: 857105
  • 博文数量: 286
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 1841
  • 用 户 组: 普通用户
  • 注册时间: 2015-05-09 16:26
文章分类

全部博文(286)

文章存档

2016年(38)

2015年(248)

我的朋友

分类: LINUX

2015-06-11 10:31:29

    OpenWRT无线MAC地址过滤
在 /etc/config/wireless 配置文件里
config wifi-device  radio0 的配置下面 添加如下内容

option macfilter 2        # 0=disable (default), 1=deny, 2=permit(Allow)
option maclist '00:03:2A:01:83:65 00:13:E8:BA:91:F3'

这两个选项 还不能被 mac80211 类型的驱动(b43, ath5k and ath9k)所使用
========================================================================

或者执行命令
$ wlc ifname wl0 maclist “00:00:00:00:00:01 00:00:00:00:00:02″
$ wlc ifname wl0 macfilter 2

取消
$ wlc ifname wl0 maclist none
$ wlc ifname wl0 macfilter 0

但wlc命令支持broadcom驱动

/> http://dev.openwrt.org/ticket/7856

========================================================================

2013年11月2日 更新:

新版的OpenWRT都支持 macfilter 和 maclist选项了
在config wifi-iface 下面,添加

option macfilter allow
list maclist 00:26:C7:3D:BF:3E
list maclist 00:26:c7:29:e2:f4
list maclist 78:92:9C:0B:0C:02

这就是实现 MAC地址白名单的方法

========================================================================
某个论坛有网友说:

我的是机器是FW150R V2, 用LuCI设置过滤无效, 需要手动修改.

原因是, 在LuCI设置的话, 他将选项加到 config wifi-device, 这个在我机器无效, 正确的应当是加在 config wifi-iface 才可以.

错误的:

config wifi-device radio0
      option 'macfilter' 'allow'
      list 'maclist' '00:00:00:00:00:00'

正确的:

config wifi-iface
       option 'macfilter' 'allow'
       list 'maclist' '00:00:00:00:00:00'

阅读(3410) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~