- STORY (skippable) -
Hi guys, as you may have read there are few issues with Fastweb WOW-FI in Italy. It’s a free service for those who owe username and password, and I use my GL- AR750 as Wireless Network: Client “WOW FI - FASTWEB” (wlan-sta) with security WPA2-EAP-MSCHAPV2.
Connection works flawlessly but lease time is only 15 minutes before automatic renew, then there are 1-15 seconds of “no internet” without disconnection, then start working again. I use this connection mainly for video streaming, so thanks to buffering this small disconnection have no impact.
BUT sometimes it won’t reconnect after lease time over, even if I reboot the router, I needed to wait 1 hour or more before automatic reconnection. After some tries I found that changing MAC address made the work, so
- QUESTION -
I need a script to automate the mac randomize process. In “human language” something like
Ping google every 30 seconds
If no reply, change mac with a random one
Reconnect to network with wlan-sta interface
If possible, avoid wlan0 reboot. When I change MAC address from admin panel - more settings - mac clone, wifi connection disconnects from all devices then after few seconds it reconnects with working internet
Please help
If needed:
GL.iNet GL-AR750 Latest firmware 3.105 2020-12-07 15:28:11
OpenWrt 18.06.1 r7258-5eb055306f / LuCI openwrt-18.06 branch (git-18.228.31946-f64b152)
Architecture Qualcomm Atheros QCA9533 ver 2 rev 0
Kernel Version 4.9.120