如何阻止设备尝试连接你的 wifi

如何阻止设备尝试连接你的 wifi

在我的日志文件中,我看到 hostapd 显示一个设备正在不断尝试连接和断开连接,这会降低网络速度并污染日志文件。

有人知道如何阻止设备尝试访问您的 wifi 吗?这将减少日志文件的污染并加快网络速度,因为这种连续的请求会降低 wifi 速度。

日志文件如下所示:

Sun Jan 17 15:05:39 2016 daemon.info hostapd: wlan0: STA 00:04:20:xx:yy:zz IEEE 802.11: authenticated
Sun Jan 17 15:05:39 2016 daemon.info hostapd: wlan0: STA 00:04:20:xx:yy:zz IEEE 802.11: associated (aid 2)
Sun Jan 17 15:05:48 2016 daemon.info hostapd: wlan0: STA 00:04:20:xx:yy:zz IEEE 802.11: deauthenticated due to local deauth request
Sun Jan 17 15:05:59 2016 daemon.info hostapd: wlan0: STA 00:04:20:xx:yy:zz IEEE 802.11: authenticated
Sun Jan 17 15:05:59 2016 daemon.info hostapd: wlan0: STA 00:04:20:xx:yy:zz IEEE 802.11: associated (aid 2)
Sun Jan 17 15:06:08 2016 daemon.info hostapd: wlan0: STA 00:04:20:xx:yy:zz IEEE 802.11: deauthenticated due to local deauth request
Sun Jan 17 15:06:20 2016 daemon.info hostapd: wlan0: STA 00:04:20:xx:yy:zz IEEE 802.11: authenticated
Sun Jan 17 15:06:20 2016 daemon.info hostapd: wlan0: STA 00:04:20:xx:yy:zz IEEE 802.11: associated (aid 2)
Sun Jan 17 15:06:29 2016 daemon.info hostapd: wlan0: STA 00:04:20:xx:yy:zz IEEE 802.11: deauthenticated due to local deauth request
Sun Jan 17 15:06:41 2016 daemon.info hostapd: wlan0: STA 00:04:20:xx:yy:zz IEEE 802.11: authenticated
Sun Jan 17 15:06:41 2016 daemon.info hostapd: wlan0: STA 00:04:20:xx:yy:zz IEEE 802.11: associated (aid 2)
Sun Jan 17 15:06:50 2016 daemon.info hostapd: wlan0: STA 00:04:20:xx:yy:zz IEEE 802.11: deauthenticated due to local deauth request
Sun Jan 17 15:07:01 2016 daemon.info hostapd: wlan0: STA 00:04:20:xx:yy:zz IEEE 802.11: authenticated
Sun Jan 17 15:07:01 2016 daemon.info hostapd: wlan0: STA 00:04:20:xx:yy:zz IEEE 802.11: associated (aid 2)
Sun Jan 17 15:07:10 2016 daemon.info hostapd: wlan0: STA 00:04:20:xx:yy:zz IEEE 802.11: deauthenticated due to local deauth request

附言:我已经阻止了路由器(网络)上的 mac 地址,但这似乎并没有解决问题(可能是因为该阻止将在初始握手后完成?))。

相关内容