Xiaomi Mi Router 4A Gigabit Edition (R4AG/R4A Gigabit) -- fully supported and flashable with OpenWRTInvasion

Hi guys!

Just posting to say that I'm using the 19.07.2 build that @Zorro uploaded (the one of the #2 link) and it's working great on my Mi 4 Gigabit Edition, way better than the old snapshots from when I first modded my router to install OpenWRT. It's fast, with flow offloading my 300/15 connection works without any issue at full speed and so far very stable. Totally recommended.

3 Likes

Hello, if you find any bug, I appreciate that you can report it here. I would like to flash my router

1 Like

@rogerpueyo Nitpick regarding the topic title: The correct spelling is OpenWrt.

1 Like

I am fully aware of it :wink: but the tool is indeed named OpenWRTInvasion

3 Likes

You can flash it. One of my two Devices runs this image for a couple of days now in daily use without any trouble. You will do fine until there is a fully supported Version 20 of OpenWRT for this device.
Follow the excellent descriptions and enjoy !

1 Like

I've just made a video showing the complete install method and debrick method if needed. Hopefully its helpfull!

10 Likes

Hello,
Thank you for you works and also for the video.
I am stuck and need your help.

I was able to run OpenWRTInvasion but I cannot connect to telnet. I don't know how to solve that. I am now running on firmware 2.28.62. Initialy my router was with chinese firmware.

pi@raspberrypi:~/OpenWRTInvasion $ python3 remote_command_execution_vulnerability.py
Router IP address: 192.168.1.66
stok: c8f27652af5b21d497cc68e9e9d453ea
****************
router_ip_address: 192.168.1.66
stok: c8f27652af5b21d497cc68e9e9d453ea
****************
start uploading config file...
start exec command...
done! Now you can connect to the router using telnet (user: root, password: none)
In MacOS, execute in the terminal:
telnet 192.168.1.66
pi@raspberrypi:~/OpenWRTInvasion $ telnet 192.168.1.66
Trying 192.168.1.66...
telnet: Unable to connect to remote host: Connection refused

Thank you for your help
Maxence

1 Like

after you've set the password in the stock firmware webinterface, do a reboot and try to connect to it again. I needed a reboot to be able to connect.

1 Like

I tried a reboot, confirmed by the change of stok but same result.
I plug the router on the lan 2.
And I am doing the hack from my remote rpi3B trough SSH (my computer is under windows and the script of Zoro don't want to work Rrrr).

I configured the router as an access point to be able to reach it though my normal network.

I don't know if one of these elements can explain my problem.

1 Like

i am new and unfamiliar with linux .
i have mi4a gigabit router and also a ch341 programmer
i have problem with stock firmware related to vpn because when i input my pptp account parameters in router and want to access filtered websites in my cellphone like youtube , it doesn't work and websites remain filtered but my ip and geo location changes so i decided to flash a new firmware that solves my vpn problem .
my question is : is there a dd-wrt firmware or edited dump with vpn funtionality like asuswrt for pptp and l2tp and openvpn client tested and functional that i flash it with programmer on my router?

Normally I've found a reboot cures it when I've had issues. Out if curiosity, the IP you're using is not default did you change it?

2 Likes

I think the OpenWrtInvasion method is preferred over the CH341, If you need help check my video above. It show me doing it on Linux but you can achieve the same on Windows or Mac. I think you're asking if their is an OpenWrt image that has VPN functionality and the answer is yes, off the top of my head I think Zorro's second image has it but it's definitely a possibility (although because we are mostly using snapshots it can be difficult to install additional packages)

3 Likes

As @hoddy said you don't need a programmer anymore use OpenWrtInvasion method instead .you can install ubuntu on VMware then try to flash openwrt firmware.below image has both openvpn and wireguard :

https://anonfile.com/16y6d6x7of/openwrt-ramips-mt7621-xiaomi_mir3g-v2-squashfs-sysupgrade_zip

3 Likes

thanks for the reply
is pptp and l2tp included in vpn client list
are they really functional and tested
can you upload some image from pptp and l2tp and ovpn setting
i appreciate it

thanks for your helpful video but as i told i'm not familiar with linux
can you upload a video doing that in windows it would be helpful for those like me
i really appreciate your effort

1 Like

Sorry @emer62304 I'm probably not going to get a chance to do that for a while, however I'd really tat this opportunity to learn a little Linux, what you learn will definitely help you in the future when you're running OpenWrt. Download Virtual Box and grab a Ubuntu image and give it a go. As for your ovpn question, I think you should find the information you need here: https://openwrt.org/docs/guide-user/services/vpn/openvpn/client-luci

1 Like

Hi all

Is the Xiaomi Mi 4A (R4AC) non Gigabit flashable with OpenWrt?

Is this the correct firmware ?

Thanks!

@hoddy
I had switch the mode of the router to Access point.
Now I have resetted it to factory and I just done the basic installation.
The exploit "works" on 192.168.31.1 but it is refusing the telnet connection.
I tried to change the DNS, same result.
Any idea?

About Zorro's scripts, on my windows 10 64Bit, there is an error about UTF-8 (french version). No idea how to improve or solve that.

Yes,
I have 2 of these devices (100m) and installed them using the OpenWrtInvasion exploit using the link you shared as the openwrt image

3 Likes

Not exactly sure what to suggest, might be worth using the debrick method (at the end of my video) to make sure you're on a firmware we know is exploitable. Also, check you dont have any firewall rules on your pi stopping telnet (or anything else needed for the exploit (probably ftp)), could also try telneting from your window PC in command line the comand is the same "telnet 192.168.31.1"