Periodical MAC address change

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Goto page Previous  1, 2
Author Message
supak111
DD-WRT Novice


Joined: 04 Jan 2016
Posts: 4

PostPosted: Fri Aug 11, 2023 2:51    Post subject: Reply with quote
Put this in the: Administration->Commands ->Command Shell AND click: SAVE STARTUP

Code:

#!/bin/ash

MAC=`(date; cat /proc/interrupts) | md5sum | sed -r 's/^(.{10}).*$/\1/; s/([0-9a-f]{2})/\1:/g; s/:$//;'`
mac_clone_enable=1
nvram set def_hwaddr="00:${MAC}"


Then go to: Administration->Keep Alive->Schedule Reboot and set you router to restart every X amount of hours

This works perfect for me, I get a new random IP address once a day


.
Sponsor
Goto page Previous  1, 2 Display posts from previous:    Page 2 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum