openwrt设置随机mac

2024-08-15

OpenWRT设置随机MAC地址的好处

设置随机MAC地址是OpenWRT的一个有用功能,它可以为您的网络设备提供额外的安全性和隐私保护。以下是设置随机MAC地址的好处:

  1. 提高隐私性:通过设置随机MAC地址,您可以避免被网络服务提供商(ISP)或其他第三方追踪您的网络活动。
  2. 防止设备追踪:MAC地址是设备的唯一标识符,设置随机MAC地址可以防止设备被追踪和识别。
  3. 减少广告追踪:一些广告商会使用MAC地址来追踪您的网络活动,设置随机MAC地址可以减少这种追踪。
  4. 增强安全性:设置随机MAC地址可以使得黑客更难以识别和攻击您的设备。
  5. 避免ISP限制:一些ISP会限制特定的MAC地址,设置随机MAC地址可以避免这种限制。
  6. 方便测试和调试:设置随机MAC地址可以方便测试和调试网络设备和应用程序。
  7. 增强网络兼容性:设置随机MAC地址可以增强网络兼容性,避免由于MAC地址冲突导致的网络问题。

总之,设置随机MAC地址是OpenWRT的一个有用功能,它可以为您的网络设备提供额外的安全性和隐私保护。

脚本


#!/bin/bash /etc/rc.common

START=17

start() {
 huawei=("00:18:82" "00:1E:10" "00:25:68" "00:25:9E" "00:2E:C7" "00:34:FE" "00:46:4B" "00:5A:13" "00:66:4B" "00:9A:CD" "00:BE:3B" "00:E0:FC" "00:F8:1C" "04:02:1F" "04:25:C5" "04:27:58" "04:33:89" "04:4F:4C" "04:75:03" "04:79:70" "04:9F:CA" "04:B0:E7" "04:BD:70" "04:C0:6F" "04:F9:38" "04:FE:8D" "08:19:A6" "08:63:61" "08:7A:4C" "08:C0:21" "08:E8:4F" "0C:2C:54" "0C:37:DC" "0C:41:E9" "0C:45:BA" "0C:70:4A" "0C:8F:FF" "0C:96:BF" "0C:B5:27" "0C:C6:CC" "0C:D6:BD" "10:1B:54" "10:44:00" "10:47:80" "10:51:72" "10:B1:F8" "10:C1:72" "10:C6:1F" "14:09:DC" "14:30:04" "14:57:9F" "14:5F:94" "14:9D:09" "14:A0:F8" "14:A5:1A" "14:B9:68" "14:D1:1F" "14:D1:69" "18:C5:8A" "18:D2:76" "18:DE:D7" "1C:15:1F" "1C:1D:67" "1C:59:9B" "1C:67:58" "1C:8E:5C" "20:08:ED" "20:0B:C7" "20:28:3E" "20:2B:C1" "20:3D:B2" "20:54:FA" "20:A6:80" "20:F1:7C" "20:F3:A3" "24:00:BA" "24:09:95" "24:1F:A0" "24:2E:02" "24:44:27" "24:4C:07" "24:69:A5" "24:7F:3C" "24:9E:AB" "24:BC:F8" "24:DB:AC" "24:DF:6A" "24:FB:65" "28:31:52" "28:3C:E4" "28:5F:DB" "28:6E:D4" "28:9E:97" "28:A6:DB" "28:B4:48" "2C:55:D3" "2C:97:B1" "2C:9D:1E" "2C:AB:00" "2C:CF:58" "30:45:96" "30:74:96" "30:87:30" "30:A1:FA" "30:D1:7E" "30:F3:35" "34:00:A3" "34:0A:98" "34:12:F9" "34:1E:6B" "34:29:12" "34:2E:B6" "34:6A:C2" "34:6B:D3" "34:79:16" "34:A2:A2" "34:B3:54" "34:CD:BE" "38:37:8B" "38:4C:4F" "38:BC:01" "38:F8:89" "3C:15:FB" "3C:47:11" "3C:67:8C" "3C:78:43" "3C:CD:5D" "3C:DF:BD" "3C:E8:24" "3C:F8:08" "3C:FA:43" "40:4D:8E" "40:7D:0F" "40:CB:A8" "40:EE:DD" "44:55:B1" "44:6A:2E" "44:6E:E5" "44:82:E5" "44:C3:46" "48:00:31" "48:3C:0C" "48:43:5A" "48:46:FB" "48:57:02" "48:62:76" "48:7B:6B" "48:8E:EF" "48:AD:08" "48:D5:39" "48:DB:50" "48:FD:8E" "4C:1F:CC" "4C:54:99" "4C:8B:EF" "4C:B1:6C" "4C:D0:CB" "4C:D1:A1" "4C:F9:5D" "4C:FB:45" "50:01:6B" "50:01:D9" "50:04:B8" "50:1D:93" "50:5D:AC" "50:68:0A" "50:6F:77" "50:9F:27" "50:A7:2B" "54:25:EA" "54:39:DF" "54:51:1B" "54:89:98" "54:A5:1B" "54:B1:21" "58:1F:28" "58:2A:F7" "58:60:5F" "58:7F:66" "58:BA:D4" "58:D7:59" "58:F9:87" "5C:03:39" "5C:09:79" "5C:4C:A9" "5C:54:6D" "5C:7D:5E" "5C:A8:6A" "5C:B3:95" "5C:B4:3E" "5C:C3:07" "5C:F9:6A" "60:08:10" "60:2E:20" "60:83:34" "60:DE:44" "60:DE:F3" "60:E7:01" "60:F1:8A" "60:FA:9D" "64:16:F0" "64:3E:8C" "64:6D:6C" "64:A6:51" "64:F8:1C" "68:89:C1" "68:8F:84" "68:A0:3E" "68:A0:F6" "68:A8:28" "68:CC:6E" "6C:B7:49" "70:19:2F" "70:54:F5" "70:72:3C" "70:79:90" "70:7B:E8" "70:8A:09" "70:A8:E3" "70:D3:13" "74:5A:AA" "74:60:FA" "74:88:2A" "74:9D:8F" "74:A0:63" "74:A5:28" "74:C1:4F" "74:D2:1D" "78:1D:BA" "78:58:60" "78:62:56" "78:6A:89" "78:D7:52" "78:F5:57" "78:F5:FD" "7C:11:CB" "7C:1C:F1" "7C:60:97" "7C:76:68" "7C:7D:3D" "7C:A1:77" "7C:A2:3E" "7C:B1:5D" "7C:C3:85" "80:13:82" "80:38:BC" "80:41:26" "80:69:33" "80:71:7A" "80:7D:14" "80:B5:75" "80:B6:86" "80:D0:9B" "80:D4:A5" "80:FB:06" "84:21:F1" "84:47:65" "84:5B:12" "84:9F:B5" "84:A8:E4" "84:A9:C4" "84:AD:58" "84:BE:52" "84:DB:AC" "88:10:8F" "88:11:96" "88:28:B3" "88:3F:D3" "88:40:3B" "88:44:77" "88:53:D4" "88:66:39" "88:86:03" "88:A2:D7" "88:BF:E4" "88:CE:FA" "88:CF:98" "88:E3:AB" "88:F5:6E" "8C:0D:76" "8C:15:C7" "8C:25:05" "8C:34:FD" "8C:6D:77" "8C:EB:C6" "90:03:25" "90:17:AC" "90:2B:D2" "90:4E:2B" "90:67:1C" "90:94:97" "94:04:9C" "94:0E:6B" "94:77:2B" "94:D0:0D" "94:DB:DA" "94:FE:22" "98:9C:57" "98:E7:F5" "9C:1D:36" "9C:28:EF" "9C:37:F4" "9C:52:F8" "9C:71:3A" "9C:74:1A" "9C:7D:A3" "9C:B2:B2" "9C:C1:72" "9C:E3:74" "A0:08:6F" "A0:57:E3" "A0:8C:F8" "A0:8D:16" "A0:A3:3B" "A0:F4:79" "A4:71:74" "A4:93:3F" "A4:99:47" "A4:9B:4F" "A4:BA:76" "A4:BE:2B" "A4:C6:4F" "A4:CA:A0" "A4:DC:BE" "A8:0C:63" "A8:7D:12" "A8:C8:3A" "A8:CA:7B" "A8:F5:AC" "AC:07:5F" "AC:4E:91" "AC:61:75" "AC:75:1D" "AC:85:3D" "AC:92:32" "AC:CF:85" "AC:E2:15" "AC:E8:7B" "AC:F9:70" "B0:55:08" "B0:5B:67" "B0:89:00" "B0:E1:7E" "B0:E5:ED" "B0:EB:57" "B4:15:13" "B4:30:52" "B4:43:26" "B4:86:55" "B4:CD:27" "B4:FB:F9" "B8:08:D7" "B8:94:36" "B8:BC:1B" "B8:C3:85" "BC:25:E0" "BC:3D:85" "BC:3F:8F" "BC:62:0E" "BC:75:74" "BC:76:70" "BC:9C:31" "BC:E2:65" "C0:70:09" "C0:BF:C0" "C0:F4:E6" "C4:05:28" "C4:06:83" "C4:07:2F" "C4:47:3F" "C4:86:E9" "C4:9F:4C" "C4:B8:B4" "C4:F0:81" "C4:FF:1F" "C8:0C:C8" "C8:14:51" "C8:1F:BE" "C8:51:95" "C8:8D:83" "C8:94:BB" "C8:C2:FA" "C8:D1:5E" "CC:53:B5" "CC:96:A0" "CC:A2:23" "CC:BB:FE" "CC:CC:81" "D0:16:B4" "D0:2D:B3" "D0:3E:5C" "D0:65:CA" "D0:6F:82" "D0:7A:B5" "D0:D0:4B" "D0:D7:83" "D0:EF:C1" "D0:FF:98" "D4:40:F0" "D4:61:2E" "D4:6A:A8" "D4:6E:5C" "D4:94:E8" "D4:A1:48" "D4:B1:10" "D4:F9:A1" "D8:49:0B" "D8:9B:3B" "D8:C7:71" "DC:09:4C" "DC:16:B2" "DC:72:9B" "DC:90:88" "DC:99:14" "DC:C6:4B" "DC:D2:FC" "DC:D9:16" "DC:EE:06" "E0:19:1D" "E0:24:7F" "E0:28:61" "E0:36:76" "E0:97:96" "E0:A3:AC" "E4:0E:EE" "E4:34:93" "E4:35:C8" "E4:68:A3" "E4:72:E2" "E4:7E:66" "E4:A7:C5" "E4:A8:B6" "E4:C2:D1" "E4:FB:5D" "E8:08:8B" "E8:4D:D0" "E8:68:19" "E8:AB:F3" "E8:BD:D1" "E8:CD:2D" "EC:23:3D" "EC:38:8F" "EC:4D:47" "EC:89:14" "EC:8C:9A" "EC:CB:30" "F0:0F:EC" "F0:2F:A7" "F0:43:47" "F0:63:F9" "F0:98:38" "F0:C8:50" "F4:4C:7F" "F4:55:9C" "F4:63:1F" "F4:8E:92" "F4:9F:F3" "F4:BF:80" "F4:C7:14" "F4:CB:52" "F4:DC:F9" "F4:E3:FB" "F8:01:13" "F8:23:B2" "F8:3D:FF" "F8:4A:BF" "F8:6E:EE" "F8:75:88" "F8:98:B9" "F8:98:EF" "F8:BF:09" "F8:C3:9E" "F8:E8:11" "FC:3F:7C" "FC:48:EF" "FC:87:43" "FC:E3:3C" )

#cm
chuawei=("00:CF:C0"  "00:E2:2C"  "04:4F:7A"  "04:7E:23"  "0C:14:D2"  "10:3D:3E"  "14:79:F3"  "14:AD:CA"  "18:69:DA"  "1C:25:E1"  "1C:41:76"  "1C:78:4E"  "20:96:8A"  "24:00:FA"  "24:12:81"  "24:61:5A"  "28:23:F5"  "2C:33:41"  "34:AC:11"  "3C:57:4F"  "3C:E3:E7"  "40:62:EA"  "44:22:95"  "44:C8:74"  "44:E6:B0"  "48:21:6C"  "4C:45:76"  "50:29:7B"  "50:55:8D"  "50:70:97"  "50:8C:F5"  "58:91:53"  "58:C8:76"  "5C:75:C6"  "64:58:AD"  "64:C5:82"  "64:F8:8A"  "68:8B:0F"  "6C:0F:0B"  "70:89:CC"  "74:AD:B7"  "78:10:53"  "78:2E:56"  "78:81:CE"  "78:C3:13"  "7C:6A:60"  "80:22:78"  "80:44:FD"  "84:27:B6"  "8C:18:50"  "8C:53:D2"  "8C:8F:8B"  "90:47:3C"  "90:F3:B8"  "94:FF:61"  "98:7D:DD"  "A0:95:0C"  "A0:9B:12"  "A4:1B:34"  "A8:41:22"  "A8:61:DF"  "AC:54:74"  "AC:5A:EE"  "AC:71:0C"  "AC:8B:6A"  "B0:30:55"  "B0:53:65"  "B4:54:59"  "B4:BA:12"  "B4:D0:A9"  "BC:D7:CE"  "C0:16:92"  "C0:98:DA"  "C0:D0:FF"  "C4:33:06"  "CC:5C:DE"  "CC:F0:FD"  "D4:7E:E4"  "DC:15:2D"  "E0:45:6D"  "E0:C5:8F"  "E0:E0:C2"  "E4:2D:7B"  "E4:C0:CC"  "E8:3A:4B"  "EC:9B:2D"  "F0:10:AB"  "F8:48:FD"  "FC:2E:19"  "FC:8E:5B"  "FC:F2:9F")


#Intel
ihuawei=("00:10:E6" "44:1E:91" "18:06:75" "04:9B:9C" "C4:28:2D" "00:22:46" "9C:31:78" "DC:15:DB" "E0:61:B2" "94:F1:9E" "00:02:B3" "00:03:47" "00:04:23" "00:07:E9" "00:0C:F1" "00:0E:0C" "00:0E:35" "00:11:11" "00:11:75" "00:12:F0" "00:13:02" "00:13:20" "00:13:CE" "00:13:E8" "00:15:00" "00:15:17" "00:16:6F" "00:16:76" "00:16:EA" "00:16:EB" "00:18:DE" "00:19:D1" "00:19:D2" "00:1B:21" "00:1B:77" "00:1C:BF" "00:1C:C0" "00:1D:E0" "00:1D:E1" "00:1E:64" "00:1E:65" "00:1E:67" "00:1F:3B" "00:1F:3C" "00:20:7B" "00:21:5C" "00:21:5D" "00:21:6A" "00:21:6B" "00:22:FA" "00:22:FB" "00:23:14" "00:23:15" "00:24:D6" "00:24:D7" "00:26:C6" "00:26:C7" "00:27:0E" "00:27:10" "00:28:F8" "00:50:F1" "00:90:27" "00:A0:C9" "00:AA:00" "00:AA:01" "00:AA:02" "00:C2:C6" "00:D0:B7" "00:DB:DF" "08:11:96" "08:D4:0C" "0C:8B:FD" "0C:D2:92" "10:02:B5" "10:0B:A9" "10:4A:7D" "10:F0:05" "14:AB:C5" "18:3D:A2" "18:5E:0F" "18:FF:0F" "24:77:03" "28:16:AD" "28:B2:BD" "28:C6:3F" "2C:6E:85" "30:3A:64" "30:E3:7A" "34:02:86" "34:13:E8" "34:DE:1A" "34:E6:AD" "34:F3:9A" "3C:A9:F4" "3C:F8:62" "3C:FD:FE" "40:25:C2" "44:03:2C" "44:85:00" "48:45:20" "48:51:B7" "4C:34:88" "4C:79:BA" "4C:80:93" "4C:EB:42" "50:2D:A2" "58:91:CF" "58:94:6B" "58:A8:39" "58:FB:84" "5C:51:4F" "5C:C5:D4" "5C:D2:E4" "5C:E0:C5" "60:36:DD" "60:57:18" "60:67:20" "60:6C:66" "64:80:99" "64:D4:DA" "68:05:CA" "68:07:15" "68:17:29" "68:5D:43" "6C:29:95" "6C:88:14" "6C:A1:00" "70:1C:E7" "74:E5:0B" "78:0C:B8" "78:92:9C" "78:FF:57" "7C:5C:F8" "7C:67:A2" "7C:7A:91" "7C:B0:C2" "7C:CC:B8" "80:00:0B" "80:19:34" "80:86:F2" "80:9B:20" "84:3A:4B" "84:68:3E" "84:A6:C8" "84:EF:18" "88:53:2E" "88:78:73" "8C:70:5A" "8C:A9:82" "90:2E:1C" "90:49:FA" "90:E2:BA" "94:65:9C" "98:4F:EE" "98:54:1B" "9C:4E:36" "9C:DA:3E" "A0:36:9F" "A0:88:69" "A0:88:B4" "A0:A8:CD" "A0:C5:89" "A0:D3:7A" "A4:02:B9" "A4:34:D9" "A4:4E:31" "A4:BF:01" "A4:C4:94" "AC:2B:6E" "AC:72:89" "AC:7B:A1" "AC:FD:CE" "B0:35:9F" "B4:6D:83" "B4:96:91" "B4:B6:76" "B4:D5:BD" "B8:03:05" "B8:08:CF" "B8:81:98" "B8:8A:60" "B8:B8:1E" "B8:BF:83" "BC:0F:64" "BC:77:37" "BC:A8:A6" "C4:85:08" "C4:D9:87" "C8:21:58" "C8:34:8E" "C8:F7:33" "CC:3D:82" "D0:57:7B" "D0:7E:35" "D8:FC:93" "DC:53:60" "DC:A9:71" "E0:94:67" "E0:9D:31" "E4:02:9B" "E4:42:A6" "E4:A4:71" "E4:A7:A0" "E4:B3:18" "E4:F8:9C" "E4:FA:FD" "E8:2A:EA" "E8:B1:FC" "F0:42:1C" "F0:D5:BF" "F4:06:69" "F4:8C:50" "F4:96:34" "F8:16:54" "F8:59:71" "F8:63:3F" "F8:94:C2" "FC:F8:AE" "00:17:35" "00:1A:3F" "58:10:8C" "A0:6D:09" "00:19:25" "00:26:21" "64:55:63" "00:11:76" "00:1B:B2" "08:3F:76" "00:30:72" "00:80:53" "00:0C:C7" "00:13:B1" "00:22:E6" "00:60:AA" "00:1F:0C" "00:1B:0A" "00:23:B2" "70:93:83" "9C:DD:1F" "00:14:4D" "FC:8F:C4" "00:04:3A" "14:1B:F0" "00:19:B4" "80:A1:AB" "00:1B:F9" "00:19:00" "EC:23:68" "00:D0:5D" "00:09:58" "00:26:FD" "00:24:EA" "84:73:03" "D4:EC:86" "50:45:F7" "68:3C:7D" "CC:2A:80" "00:15:1F" "A4:DE:C9" "00:08:1A" "C0:D9:F7" "A0:98:ED" "7C:CF:CF" "40:5E:E1" "EC:D6:8A" "B0:59:47" "38:76:CA" "00:6B:A0" "CC:8C:DA" "24:97:ED" "00:01:2A" "78:3D:5B" "60:46:16")


#Apple
Ahuawei=("00:03:93" "00:05:02" "00:0A:27" "00:0A:95" "00:0D:93" "00:10:FA" "00:11:24" "00:14:51" "00:16:CB" "00:17:F2"  "00:19:E3" "00:1B:63" "00:1C:B3" "00:1D:4F" "00:1E:52" "00:1E:C2" "00:1F:5B" "00:1F:F3" "00:21:E9" "00:22:41"  "00:23:12" "00:23:32" "00:23:6C" "00:23:DF" "00:24:36" "00:25:00" "00:25:4B" "00:25:BC" "00:26:08" "00:26:4A"  "00:26:B0" "00:26:BB" "00:30:65" "00:3E:E1" "00:50:E4" "00:56:CD" "00:61:71" "00:6D:52" "00:88:65" "00:A0:40"  "00:B3:62" "00:C6:10" "00:CD:FE" "00:F4:B9" "00:F7:6F" "04:0C:CE" "04:15:52" "04:1E:64" "04:26:65" "04:48:9A"  "04:4B:ED" "04:52:F3" "04:54:53" "04:69:F8" "04:D3:CF" "04:DB:56" "04:E5:36" "04:F1:3E" "04:F7:E4" "08:00:07"  "08:66:98" "08:6D:41" "08:70:45" "08:74:02" "0C:15:39" "0C:30:21" "0C:3E:9F" "0C:4D:E9" "0C:51:01" "0C:74:C2"  "0C:77:1A" "0C:BC:9F" "0C:D7:46" "10:1C:0C" "10:40:F3" "10:41:7F" "10:93:E9" "10:9A:DD" "10:DD:B1" "14:10:9F"  "14:5A:05" "14:8F:C6" "14:99:E2" "14:BD:61" "18:20:32" "18:34:51" "18:65:90" "18:9E:FC" "18:AF:61" "18:AF:8F"  "18:E7:F4" "18:EE:69" "18:F6:43" "1C:1A:C0" "1C:5C:F2" "1C:91:48" "1C:9E:46" "1C:AB:A7" "1C:E6:2B" "20:3C:AE"  "20:76:8F" "20:78:F0" "20:7D:74" "20:9B:CD" "20:A2:E4" "20:AB:37" "20:C9:D0" "24:1E:EB" "24:24:0E" "24:5B:A7"  "24:A0:74" "24:A2:E1" "24:AB:81" "24:E3:14" "24:F0:94" "28:0B:5C" "28:37:37" "28:5A:EB" "28:6A:B8" "28:6A:BA"  "28:A0:2B" "28:CF:DA" "28:CF:E9" "28:E0:2C" "28:E1:4C" "28:E7:CF" "28:ED:6A" "28:F0:76" "2C:1F:23" "2C:20:0B"  "2C:33:61" "2C:B4:3A" "2C:BE:08" "2C:F0:A2" "2C:F0:EE" "30:10:E4" "30:63:6B" "30:90:AB" "30:F7:C5" "34:12:98"  "34:15:9E" "34:36:3B" "34:51:C9" "34:A3:95" "34:AB:37" "34:C0:59" "34:E2:FD" "38:0F:4A" "38:48:4C" "38:71:DE"  "38:B5:4D" "38:C9:86" "38:CA:DA" "3C:07:54" "3C:15:C2" "3C:AB:8E" "3C:D0:F8" "3C:E0:72" "40:30:04" "40:33:1A"  "40:3C:FC" "40:4D:7F" "40:6C:8F" "40:A6:D9" "40:B3:95" "40:D3:2D" "44:00:10" "44:2A:60" "44:4C:0C" "44:D8:84"  "44:FB:42" "48:3B:38" "48:43:7C" "48:4B:AA" "48:60:BC" "48:74:6E" "48:A1:95" "48:BF:6B" "48:D7:05" "48:E9:F1"  "4C:32:75" "4C:57:CA" "4C:74:BF" "4C:7C:5F" "4C:8D:79" "4C:B1:99" "50:32:37" "50:7A:55" "50:82:D5" "50:EA:D6"  "54:26:96" "54:4E:90" "54:72:4F" "54:9F:13" "54:AE:27" "54:E4:3A" "54:EA:A8" "58:1F:AA" "58:40:4E" "58:55:CA"  "58:7F:57" "58:B0:35" "5C:59:48" "5C:8D:4E" "5C:95:AE" "5C:96:9D" "5C:97:F3" "5C:AD:CF" "5C:F5:DA" "5C:F7:E6"  "5C:F9:38" "60:03:08" "60:33:4B" "60:69:44" "60:92:17" "60:9A:C1" "60:A3:7D" "60:C5:47" "60:D9:C7" "60:F4:45"  "60:F8:1D" "60:FA:CD" "60:FB:42" "60:FE:C5" "64:20:0C" "64:76:BA" "64:9A:BE" "64:A3:CB" "64:A5:C3" "64:B0:A6"  "64:B9:E8" "64:E6:82" "68:09:27" "68:5B:35" "68:64:4B" "68:96:7B" "68:9C:70" "68:A8:6D" "68:AE:20" "68:D9:3C"  "68:DB:CA" "68:FB:7E" "6C:19:C0" "6C:3E:6D" "6C:40:08" "6C:70:9F" "6C:72:E7" "6C:8D:C1" "6C:94:F8" "6C:AB:31"  "6C:C2:6B" "70:11:24" "70:14:A6" "70:3E:AC" "70:48:0F" "70:56:81" "70:70:0D" "70:73:CB" "70:81:EB" "70:A2:B3"  "70:CD:60" "70:DE:E2" "70:E7:2C" "70:EC:E4" "70:F0:87" "74:1B:B2" "74:81:14" "74:8D:08" "74:E1:B6" "74:E2:F5"  "78:31:C1" "78:3A:84" "78:4F:43" "78:6C:1C" "78:7E:61" "78:9F:70" "78:A3:E4" "78:CA:39" "78:D7:5F" "78:FD:94"  "7C:01:91" "7C:04:D0" "7C:11:BE" "7C:50:49" "7C:6D:62" "7C:6D:F8" "7C:C3:A1" "7C:C5:37" "7C:D1:C3" "7C:F0:5F"  "7C:FA:DF" "80:00:6E" "80:49:71" "80:92:9F" "80:BE:05" "80:D6:05" "80:E6:50" "80:EA:96" "80:ED:2C" "84:29:99"  "84:38:35" "84:78:8B" "84:85:06" "84:89:AD" "84:8E:0C" "84:A1:34" "84:B1:53" "84:FC:AC" "84:FC:FE" "88:1F:A1"  "88:53:95" "88:63:DF" "88:66:A5" "88:6B:6E" "88:C6:63" "88:CB:87" "88:E8:7F" "8C:00:6D" "8C:29:37" "8C:2D:AA"  "8C:58:77" "8C:7B:9D" "8C:7C:92" "8C:8E:F2" "8C:8F:E9" "8C:FA:BA" "90:27:E4" "90:3C:92" "90:60:F1" "90:72:40"  "90:84:0D" "90:8D:6C" "90:B0:ED" "90:B2:1F" "90:B9:31" "90:C1:C6" "90:FD:61" "94:94:26" "94:E9:6A" "94:F6:A3"  "98:01:A7" "98:03:D8" "98:10:E8" "98:5A:EB" "98:9E:63" "98:B8:E3" "98:D6:BB" "98:E0:D9" "98:F0:AB" "98:FE:94"  "9C:04:EB" "9C:20:7B" "9C:29:3F" "9C:35:EB" "9C:4F:DA" "9C:84:BF" "9C:8B:A0" "9C:F3:87" "9C:F4:8E" "9C:FC:01"  "A0:18:28" "A0:3B:E3" "A0:99:9B" "A0:D7:95" "A0:ED:CD" "A4:31:35" "A4:5E:60" "A4:67:06" "A4:B1:97" "A4:B8:05"  "A4:C3:61" "A4:D1:8C" "A4:D1:D2" "A4:F1:E8" "A8:20:66" "A8:5B:78" "A8:60:B6" "A8:66:7F" "A8:86:DD" "A8:88:08"  "A8:8E:24" "A8:96:8A" "A8:BB:CF" "A8:FA:D8" "AC:29:3A" "AC:3C:0B" "AC:61:EA" "AC:7F:3E" "AC:87:A3" "AC:BC:32"  "AC:CF:5C" "AC:FD:EC" "B0:34:95" "B0:48:1A" "B0:65:BD" "B0:70:2D" "B0:9F:BA" "B4:18:D1" "B4:4B:D2" "B4:8B:19"  "B4:9C:DF" "B4:F0:AB" "B8:09:8A" "B8:17:C2" "B8:44:D9" "B8:53:AC" "B8:78:2E" "B8:8D:12" "B8:C7:5D" "B8:E8:56"  "B8:F6:B1" "B8:FF:61" "BC:3B:AF" "BC:4C:C4" "BC:52:B7" "BC:54:36" "BC:67:78" "BC:6C:21" "BC:92:6B" "BC:9F:EF"  "BC:A9:20" "BC:EC:5D" "C0:1A:DA" "C0:63:94" "C0:84:7A" "C0:9F:42" "C0:CC:F8" "C0:CE:CD" "C0:D0:12" "C0:F2:FB"  "C4:2C:03" "C4:B3:01" "C8:1E:E7" "C8:2A:14" "C8:33:4B" "C8:69:CD" "C8:6F:1D" "C8:85:50" "C8:B5:B7" "C8:BC:C8"  "C8:E0:EB" "C8:F6:50" "CC:08:8D" "CC:08:E0" "CC:20:E8" "CC:25:EF" "CC:29:F5" "CC:44:63" "CC:78:5F" "CC:C7:60"  "D0:03:4B" "D0:23:DB" "D0:25:98" "D0:33:11" "D0:4F:7E" "D0:A6:37" "D0:C5:F3" "D0:E1:40" "D4:61:9D" "D4:9A:20"  "D4:DC:CD" "D4:F4:6F" "D8:00:4D" "D8:1D:72" "D8:30:62" "D8:96:95" "D8:9E:3F" "D8:A2:5E" "D8:BB:2C" "D8:CF:9C"  "D8:D1:CB" "DC:0C:5C" "DC:2B:2A" "DC:2B:61" "DC:37:14" "DC:41:5F" "DC:86:D8" "DC:9B:9C" "DC:A4:CA" "DC:A9:04"  "E0:5F:45" "E0:66:78" "E0:AC:CB" "E0:B5:2D" "E0:B9:BA" "E0:C7:67" "E0:C9:7A" "E0:F5:C6" "E0:F8:47" "E4:25:E7"  "E4:8B:7F" "E4:98:D6" "E4:9A:79" "E4:C6:3D" "E4:CE:8F" "E4:E4:AB" "E8:04:0B" "E8:06:88" "E8:80:2E" "E8:8D:28"  "E8:B2:AC" "EC:35:86" "EC:85:2F" "EC:AD:B8" "F0:24:75" "F0:79:60" "F0:99:BF" "F0:B0:E7" "F0:B4:79" "F0:C1:F1"  "F0:CB:A1" "F0:D1:A9" "F0:DB:E2" "F0:DB:F8" "F0:DC:E2" "F0:F6:1C" "F4:0F:24" "F4:1B:A1" "F4:31:C3" "F4:37:B7"  "F4:5C:89" "F4:F1:5A" "F4:F9:51" "F8:03:77" "F8:1E:DF" "F8:27:93" "F8:62:14" "FC:25:3F" "FC:D8:48" "FC:E9:98"  "FC:FC:48")


#GOOGLE
Ghuawei=("00:1a:11" "00:f6:20" "08:9e:08" "14:22:3b" "08:b4:b1" "1c:f2:9a" "20:1f:3b" "20:df:b9" "24:05:88" "24:29:34" "28:bd:89" "30:fd:38" "38:86:f7" "38:8b:59" "3c:28:6d" "3c:5a:b4" "3c:8d:20" "44:07:0b" "44:bb:3b" "48:d6:d5" "54:60:09" "58:24:29" "58:cb:52" "60:b7:6e" "70:3a:cb" "74:74:46" "7c:2e:bd" "7c:d9:5c" "88:3d:24" "88:54:1f" "90:0c:c8" "90:ca:fa" "94:eb:2c" "98:d2:93" "9c:4f:5f" "a4:77:33" "ac:67:84" "b0:2a:43" "b0:6a:41" "b0:e4:d5" "d8:eb:46" "da:a1:19" "dc:e5:5b" "e4:5e:1b" "e4:f0:42" "f0:5c:77" "f0:72:ea" "f0:ef:86")


#quac

qhuawei=("00:A0:C6" "64:9C:81" "88:12:4E" "8C:FD:F0")



#CISCO
ddhuawei=("08:ec:f5" "08:f3:fb" "0c:11:67" "0c:27:24" "0c:68:03" "0c:75:bd" "0c:85:25" "0c:d0:f8" "10:06:ed" "10:8c:cf" "10:b3:c6" "10:b3:d5" "10:b3:d6" "10:bd:18" "10:f3:11" "10:f9:20" "14:16:9d" "14:a2:a0" "18:33:9d" "18:59:f5" "18:80:90" "18:8b:45" "18:8b:9d" "18:9c:5d" "18:e7:28" "18:ef:63" "1c:17:d3" "1c:1d:86" "1c:6a:7a" "1c:aa:07" "1c:d1:e0" "1c:de:a7" "1c:e8:5d" "20:37:06" "20:3a:07" "20:4c:9e" "20:bb:c0" "20:cf:ae" "24:01:c7" "24:16:9d" "24:7e:12" "24:81:3b" "24:b6:57" "24:e9:b3" "24:36:da" "28:34:a2" "28:52:61" "28:6f:7f")

 NEWMAC=$(printf ${huawei[$(head -30 /dev/urandom | tr -dc "0123456789" | head -c1)]}  && hexdump -n3 -e'/1 ":%02x"' /dev/urandom)
  LANMAC=$(printf ${Ahuawei[$(head -30 /dev/urandom | tr -dc "0123456789" | head -c1)]}  && hexdump -n3 -e'/1 ":%02x"' /dev/urandom)
  WIFI0MAC=$(printf ${qhuawei[1]}  && hexdump -n3 -e'/1 ":%02x"' /dev/urandom)
  WIFI1MAC=$(printf ${qhuawei[2]}  && hexdump -n3 -e'/1 ":%02x"' /dev/urandom)


  logger "[WAN-MAC] Applying new random MAC address to WAN (${NEWMAC})..."
  logger "[LANMAC] Applying new random MAC address to LAN (${LANMAC})..."
  logger "[WIFI0MAC] Applying new random MAC address to wifi0 (${WIFI0MAC})..."
  logger "[WIFI1MAC] Applying new random MAC address to wifi1 (${WIFI1MAC})..."
  uci set network.wan.macaddr=${NEWMAC}
  uci set network.wan_eth0_2_dev.macaddr=${NEWMAC}
  uci set network.lan.macaddr=${LANMAC}
  uci set wireless.default_radio0.macaddr=${WIFI0MAC}
  uci set wireless.default_radio1.macaddr=${WIFI1MAC}
  uci commit network
  uci commit wireless
  uci commit

  log=$(uci show |grep macad)
  logger "(${log})"

/bin/echo   $(/usr/bin/openssl rand -hex 13) > /etc/smartdns/r1
/bin/echo   $(/usr/bin/openssl rand -hex 13) > /etc/smartdns/r2





euisecret=$(head -c 16 /dev/urandom | hexdump -e '16/1 "%02x""\n"' | sed "s/..../:&/g; s/://")



echo net.ipv6.conf.default.stable_secret=$euisecret >>  /etc/sysctl.conf


 sysctl -p   /etc/sysctl.conf



 /etc/init.d/dnsmasq restart



}