petey
4
Found an easier way to spoof the mac addresses which requires no changes to the firmware and is a simple script.
I call the scripts /etc/init.d/spoof0, spoof1 and spoof2
1 - nano /etc/init.d/spoof0
2 - script for LAN
#!/bin/sh /etc/rc.common
START=17
uci set network.lan.macaddr=aa:bb:cchexdump -n3 -e'3/1 ":%02x"' /dev/urandom
uci commit network
3 - change it to be executible
chmod +x /etc/init.d/spoof0
4 - enable it
./spoof0 enable
5 - cp spoof0 spoof1 and cp spoof1 spoof2
6 - nano spoof1 (WAN)
#!/bin/sh /etc/rc.common
START=17
uci set network.wan.macaddr=aa:bb:cchexdump -n3 -e'3/1 ":%02x"' /dev/urandom
uci commit network
7 - ./spoof1 enable
8 - nano spoof2 (WLAN)
#!/bin/sh /etc/rc.common
START=17
uci set wireless.@wifi-iface[0].macaddr=aa:bb:cchexdump -n3 -e'3/1 ":%02x"' /dev/urandom
uci commit network
9 - ./spoof2 enable
10 - reboot