[心得] 让Tomato的Wireless Filter套用部分接口

楼主: yukitowu (雪兔哥)   2015-06-14 17:25:23
因为有需求,
所以我开了一个 Virtual Wireless 是不加密连线的,
可是这样不单是让 AP 裸奔,
Andriod 自动搜寻无加密的 SSID 并连线的功能真的神烦,
所以最少要开 Wireless Filter 过滤 MAC Address 放行。
但是 Wireless Filter 一设定就会套用到所有 Wireless Interface,
这样原本有加密 SSID 变得很不方便,
就算知道密码还是得先设定 Wireless Filter 加入 MAC Address 才能连线,
今天花了一点时间研究,
终于找到可以让 Wireless Filter 不需要套到全部 Wireless Interface 的作法。
1. 先编辑 Wireless Filter 的清单,
记得设定为 Disable filter 并储存。
2. 如果还没建立 Virtual Wireless,
请先设定好,
并记下你需要限制的 Interface 名字,
假定我们要设定的接口名字为“wl0.1”。
3. 到 System Commands
输入“nvram show | grep macmode”
正常会列出所有 Wireless Interface 的 macmode 设定
EX.
wl0.1_macmode=disabled
wl0_macmode=disabled
wl_macmode=disabled
确认已经有 wl0.1 的 macmode 设定。
4. 输入“nvram set wl0.1_macmode=allow”后,
再输入“nvram commit”让设定储存。
5. 到 Virtual Wireless 直接按下 SAVE,
让上述的设定生效。
6. 测试让白名单的设备透过 wl0.1 连线,
和非白名单的设备连线,
通过测试就表示设定成功了。
※ 每次更新 Wireless Filter 的时候:
因为这个动作会重置 nvram 里 macmode 的设定,
所以储存后请务必重做一次第 4, 5 点这两点的动作。
作者: WaterDragonI (水龙)   2015-06-16 21:03:00
喔!先推,这板还有po文....
楼主: yukitowu (雪兔哥)   2015-06-21 13:03:00
因为改成MOD_AP版了 我自己有在用Tomato

Links booklink

Contact Us: admin [ a t ] ucptt.com