Jump to content






Photo

Tweaking a GL.iNet AR-300M AKA Shadow MicroRouter

Posted by pete_c , 29 March 2017 · 625 views

Decided to write a separate blog on a new microrouter from GLi.Net model AR-300M AKA Shadow
 
GL AR300M
GL AR300M B


 
  • Powered by Qualcomm QCA9531 SoC, 650MHz CPU
  • 300Mbps high speed
  • 128MB RAM
  • 16MB Nor + 128MB Nand dual flash, space doesn’t matters anymore
  • Small, light, easy to use
  • OpenWrt pre-installed
  • UART, PCIe interfaces.
  • External antennas (on mine)
  • 5G 802.11ac addon is available separately (still being tested such that I do not have the radio card).
More play space with this one.
 
Website: GLiNet
Forum: Gli-Net Forum

 
Using smaller RTC inside and adding a GPS.  I have been playing with those little fingernail sized USB GPS's.
 
In order to utilize one GPIO of two will need to do a pull up or pull down on the port with a resistor.
 
Going to add an LTE USB stick to this device sometime during tinkering. 
 
Primary connectivity will be the LAN with a secondary fail-over being the LTE USB stick.
 
GUI configuration is called MWAN - Multiple WAN for load balancing or failover.
 
MultipleWAN


Spoofing LAN, WAN and WLAN mac addresses for those interested.  The MAC addresses are stored in the firmware.  You can edit the firmware or use a script.  I decided just to use a 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:cc hexdump -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:cc hexdump -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:cc hexdump -n3 -e'3/1 ":%02x"' /dev/urandom
uci commit network
9 – ./spoof2 enable
 
10 – reboot
 
Adding an RTC with battery




August 2017

S M T W T F S
  12345
6789101112
131415 16 171819
20212223242526
2728293031  

Recent Comments