2008年12月30日 星期二

tomato 令wan mac address 24h變換一次

使用Tomato 韌體,希望因為MAC 修改,而取得新的實體IP (WAN IP)

通常是在使用dhcp抓取WAN ip的服務上. 或是防止別人利用WAN IP的maddress瞭解使用的機器為同一台.

在 Administration 選項 > Scheduler >選 Custom 1 or 2 等,其他 選時間

下面的框框加入

#http://www.dd-wrt.com/wiki/index.php/Useful_Scripts#Auto_Random_MAC_Address

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


資料來源:
http://www.linksysinfo.org/forums/showthread.php?t=59545

沒有留言: