小编sha*_*ool的帖子

hostapd:如何通过应用网络限制仅阻止向同一 WLAN 中的客户端发送 NetBIOS 广播

我已经通过这个优秀的教程设置了 Raspberry Pi Wi-Fi 热点和hostapd路由:https://thepi.io/how-to-use-your-raspberry-pi-as-a-wireless-access-point/。虽然我跳过了第 8 步,但一切都运行良好,并且我每天都使用它,已经持续了 2 年。在我的情况下,wlan0(集成 Wi-Fi 芯片)被禁用,wlan1(外部 Wi-Fi)被启用。dnsmasqiptables

最近,我注意到来自某些计算机的烦人的流量(NetBIOS 等),我想仅阻止此流量。然而,对我来说非常重要的是:我也希望客户能够相互沟通。很多尝试,不幸的是,我没有成功。

这是我尝试过的:

  • 过滤使用iptables-> 看到恼人的数据包并表示已被阻止,但仍被 WLAN 上的任何计算机接收
    • iptables -t raw -I PREROUTING -p tcp --dport 137 -j DROP
    • iptables -t raw -I PREROUTING -p udp --dport 137 -j DROP
    • iptables -t raw -I PREROUTING -p tcp --dport 138 -j DROP
    • iptables -t raw -I PREROUTING -p udp --dport 138 -j DROP
    • iptables -t raw -I PREROUTING -p tcp --dport 139 …

networking linux wireless-networking iptables hostapd

5
推荐指数
1
解决办法
776
查看次数