ColinTaylor
Part of the Furniture
Also, check whether you have anything set for MAC Clone (WAN - Internet Connection) because that might be overriding the WAN changes.
The changes I suggested don't effect the running system, they are only applied when the system is rebooted.
Did you try any of the suggestions in this thread, particularly post #14?Can't remember what I did last time. Appreciate any help.
Did you try any of the suggestions in this thread, particularly post #14?
This is exactly why i change my MAC address of all wifi routers.Bumping this thread as have much the same question due to the issues raised in this video:
Would changing BSSIDs / wireless MAC addresses, along with the SSIDs, help mitigate the tracking issue? I understand there's various opt-out methods (e.g. _nomap) but they depend on other parties behaving a certain way.
I change them every few months.So now your new (several years old) MAC addresses have been mapped. I don't think you've accomplished anything long-term. You might as well just buy a new router every few years .
#!/bin/sh
nvram set wl0_hwaddr="BA:BA:FA:FA:DE:22"
nvram set wl1_hwaddr="BA:BA:FA:FA:DE:EE"
nvram commit
radio off
sleep 5
ifconfig eth5 hw ether BA:BA:FA:FA:DE:EE
ifconfig eth6 hw ether BA:BA:FA:FA:DE:EE
sleep 5
radio on
service restart_wireless
So this is not correct then.No. The wireless driver is closed source and this cannot be changed anymore.
eth5 Link encap:Ethernet HWaddr BA:BA:FA:FA:DE:22
inet6 addr: fe80::b8ba:faff:fefa:de22/64 Scope:Link
UP BROADCAST RUNNING ALLMULTI MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:1728 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:214985 (209.9 KiB)
eth6 Link encap:Ethernet HWaddr BA:BA:FA:FA:DE:EE
inet6 addr: fe80::b8ba:faff:fefa:deee/64 Scope:Link
UP BROADCAST RUNNING ALLMULTI MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:3599 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:447762 (437.2 KiB)
I created a script that works.
I spent few hours thinking about why it doesn't accept new mac address and i found a solution.
Driver gladly accepts new mac address.
Why doesn't mac address change work ?
Because command ifconfig <interface> down doesn't turn off the WiFi interface, it basically does nothing.
This is very strange as it should turn off the interface.
If we first turn off the radio, for both WiFi interfaces.
Then change the mac addresses and then turn radio on, mac change works flawlessly.
Script:
File directory is: jffs/scripts
File: init-start
Code:#!/bin/sh nvram set wl0_hwaddr="BA:BA:FA:FA:DE:22" nvram set wl1_hwaddr="BA:BA:FA:FA:DE:EE" nvram commit radio off sleep 5 ifconfig eth5 hw ether BA:BA:FA:FA:DE:EE ifconfig eth6 hw ether BA:BA:FA:FA:DE:EE sleep 5 radio on service restart_wireless
This script also works if i reboot the router.
If you don't set nvram mac addresses GUI sees original hardware mac and wpa2 password doesn't work, so script has to be run in this order.
1. change nvram values for mac addresses
2. write nvram values
3. turn wifi interfaces off and wait 5 seconds
4. change mac address of wifi interfaces and wait 5 seconds
5. turn radio on
6. restart wireless service so that GUI gets updates with new mac addresses
Just tested it with 10 restarts, all works, no dropouts, wifi speeds are excellent.
So this is not correct then.
ifconfig:
Code:eth5 Link encap:Ethernet HWaddr BA:BA:FA:FA:DE:22 inet6 addr: fe80::b8ba:faff:fefa:de22/64 Scope:Link UP BROADCAST RUNNING ALLMULTI MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:1728 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:214985 (209.9 KiB) eth6 Link encap:Ethernet HWaddr BA:BA:FA:FA:DE:EE inet6 addr: fe80::b8ba:faff:fefa:deee/64 Scope:Link UP BROADCAST RUNNING ALLMULTI MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:3599 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:447762 (437.2 KiB)
Screen from android:
View attachment 37337
*Tested on ASUS RT-AC2900 (RT-AC86U) Firmware Version:386.3_2
Thank you everyone
If anyone needs this script for security or whatever reason to change mac addresses for WiFi interfaces, feel free to use it.
Now i am 100% that we can get a GUI for changing WiFi MAC addresses.
you must be a genius!I created a script that works.
I spent few hours thinking about why it doesn't accept new mac address and i found a solution.
Driver gladly accepts new mac address.
Why doesn't mac address change work ?
Because command ifconfig <interface> down doesn't turn off the WiFi interface, it basically does nothing.
This is very strange as it should turn off the interface.
If we first turn off the radio, for both WiFi interfaces.
Then change the mac addresses and then turn radio on, mac change works flawlessly.
Script:
File directory is: jffs/scripts
File: init-start
Code:#!/bin/sh nvram set wl0_hwaddr="BA:BA:FA:FA:DE:22" nvram set wl1_hwaddr="BA:BA:FA:FA:DE:EE" nvram commit radio off sleep 5 ifconfig eth5 hw ether BA:BA:FA:FA:DE:EE ifconfig eth6 hw ether BA:BA:FA:FA:DE:EE sleep 5 radio on service restart_wireless
This script also works if i reboot the router.
If you don't set nvram mac addresses GUI sees original hardware mac and wpa2 password doesn't work, so script has to be run in this order.
1. change nvram values for mac addresses
2. write nvram values
3. turn wifi interfaces off and wait 5 seconds
4. change mac address of wifi interfaces and wait 5 seconds
5. turn radio on
6. restart wireless service so that GUI gets updates with new mac addresses
Just tested it with 10 restarts, all works, no dropouts, wifi speeds are excellent.
So this is not correct then.
ifconfig:
Code:eth5 Link encap:Ethernet HWaddr BA:BA:FA:FA:DE:22 inet6 addr: fe80::b8ba:faff:fefa:de22/64 Scope:Link UP BROADCAST RUNNING ALLMULTI MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:1728 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:214985 (209.9 KiB) eth6 Link encap:Ethernet HWaddr BA:BA:FA:FA:DE:EE inet6 addr: fe80::b8ba:faff:fefa:deee/64 Scope:Link UP BROADCAST RUNNING ALLMULTI MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:3599 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:447762 (437.2 KiB)
Screen from android:
View attachment 37337
*Tested on ASUS RT-AC2900 (RT-AC86U) Firmware Version:386.3_2
Thank you everyone
If anyone needs this script for security or whatever reason to change mac addresses for WiFi interfaces, feel free to use it.
Now i am 100% that we can get a GUI for changing WiFi MAC addresses.
The jffs partition is part of the router's internal storage, it cannot be anywhere else. You need custom scripts enabled in the Merlin GUI to automatically run them.Sorry in opening up an old thread, How do i make sure this script gets started at startup, I have done a fresh install, Do i need the jffs partition on a usb or will it be ok internal, On an rt-AC88u.
All help greatly appriceated
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!