mirror of
https://github.com/srlabs/blue-merle.git
synced 2025-01-03 03:20:52 -05:00
change MAC address in repeater mode
Now, the hosting WiFi sees random a random MAC address every time the device is rebooted.
This commit is contained in:
parent
c68661e1a5
commit
5c6976aa11
@ -18,10 +18,12 @@ RESET_BSSIDS () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# This chaneges the MAC address clients see when connecting to the WiFi spawned by the device.
|
|
||||||
# You can check with "arp -a" that your endpoint, e.g. your laptop, sees a different MAC after a reboot of the Mudi.
|
|
||||||
RANDOMIZE_MACADDR () {
|
RANDOMIZE_MACADDR () {
|
||||||
|
# This changes the MAC address clients see when connecting to the WiFi spawned by the device.
|
||||||
|
# You can check with "arp -a" that your endpoint, e.g. your laptop, sees a different MAC after a reboot of the Mudi.
|
||||||
uci set network.@device[1].macaddr=`UNICAST_MAC_GEN`
|
uci set network.@device[1].macaddr=`UNICAST_MAC_GEN`
|
||||||
|
# Here we change the MAC address the upstream wifi sees
|
||||||
|
uci set glconfig.general.macclone_addr=`UNICAST_MAC_GEN`
|
||||||
uci commit network
|
uci commit network
|
||||||
# You need to restart the network, i.e. /etc/init.d/network restart
|
# You need to restart the network, i.e. /etc/init.d/network restart
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user