openwrt-leigodacc-manager is a shell script-based OpenWrt Leigod Accelerator Manager developed by me.
This toolbox adds error detection and dependency installation based on the official script, compensating for various inconveniences that require manual operation in the official script.
Today, I will teach you how to enable the Leigod Accelerator router plugin on OpenWrt for gaming consoles, PCs, mobile phones, and other devices.
Asus routers (modified version) and Xiaomi MiROM factory firmware cannot use this manager; it supports third-party OpenWrt such as QWRT/LEDE/ImmoraliWrt/iStoreOS to install the Leigod Accelerator plugin.
CatWrt users can quickly identify and install it directly in cattools; refer to this blog for details 👇
Using the exclusive Leigod Accelerator code
miaoer
can get 50 hours of non-pause experience time, and with the OpenWrt end, it can achieve acceleration for 6 devices.
PC redemption: Leigod Accelerator - More in the upper right corner - CDK/code redemption - Entermiaoer
to redeem during code redemption.
SSH#
First, we need to connect via SSH. You can use the built-in OpenSSH on Windows to enter ssh [email protected]
in Windows Terminal or CMD; here, 192.168.1.4 is your OpenWrt address.
Refer to this blog for details 👇
Log into the terminal, click COPY on the right side of the blog to paste the code in the terminal to run it.
sh -c "$(curl -fsSL https://service.miaoer.xyz/openwrt-leigodacc-manager/leigod.sh)"
The example below shows all the function menu panels of the manager, executed by logging in via SSH.
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Install the latest PowerShell to learn about new features and improvements! https://aka.ms/PSWindows
PS C:\Users\Cat> ssh [email protected]
[email protected]'s password: # Enter password is not visible; refer to the blog above for details on how to connect via SSH.
BusyBox v1.36.0 (2023-07-05 11:34:20 UTC) built-in shell (ash)
_____ _ _
| |___| |_ _ _ _ ___| |_
| --| .'| _| | | | _| _|
|_____|__,|_| |_____|_| |_|
W I R E L E S S F R E E D O M
======================================
CatWrt.v24.9.x86_64
Blog: miaoer.xyz
OpenWrt: Lean source r6781-062d85f8f
======================================
root@CatWrt:~# sh -c "$(curl -fsSL https://service.miaoer.xyz/openwrt-leigodacc-manager/leigod.sh)"
=============================
OpenWrt LeigodAcc Manager
1. Install
2. Uninstall
3. Reinstall/Update
4. Disable/Enable Leigod service
5. Switch running mode (TUN/Tproxy)
6. Install compatibility dependencies (host optimization)
7. Disable IPv6 (mobile optimization)
8. Switch to Lean IPKG version
9. Feedback/Help
0. Exit
=============================
Select a number function item and press Enter to execute:
Install#
Here, enter 1
and press Enter to confirm; this will update the software source and check for any missing components required by the Leigod Accelerator plugin.
The output will be as follows:
......
[INFO] libpcap essential component has been installed, skipping
[INFO] iptables essential component has been installed, skipping
[INFO] kmod-ipt-nat essential component has been installed, skipping
[INFO] iptables-mod-tproxy essential component has been installed, skipping
[INFO] kmod-ipt-ipset essential component has been installed, skipping
[INFO] ipset essential component has been installed, skipping
[INFO] kmod-tun has been installed, skipping
[INFO] kmod-ipt-tproxy has been installed, skipping
[INFO] kmod-netem has been installed, skipping
[INFO] tc-full has been installed, skipping
[INFO] conntrack has been installed, skipping
[INFO] UPnP has been enabled and is running
After successful installation, you can discover and bind devices in the Leigod Accelerator APP.
[INFO] Below is the script provided by Leigod; the printed content is lengthy. If you encounter any issues, please provide the output (screenshot/text) for feedback in the group.
....
If you see [INFO] Missing component package: kmod-netem
or other components, it indicates that your firmware currently lacks this dependency, which may affect the user experience, but it can still be used normally.
After installing the dependencies, the official OpenWrt plugin for the Leigod Accelerator will be installed. This will execute the official script once and output a lot of content.
Until the official script ends, it will check whether the binary file directory exists; if it does, it indicates that the installation was successful, prompting: [INFO] LeigodAcc has been successfully installed
.
You can go to the OpenWrt backend to experience the Leigod Accelerator plugin.
::: warning
If essential components are missing, the Leigod Accelerator will not function properly. It is recommended to configure the software source or switch to a suitable firmware, as described below.
Please read the ## Install Compatibility Dependencies (Host Optimization) & ## Help sections of this blog.
:::
Bind Devices#
Android & iOS Download Leigod Accelerator to bind devices.
There may be two possibilities for binding devices here:
- First: Already installed via the manager; just enter the Leigod mobile APP and select
Install
to bind successfully (no need to SSH on the phone). - Second: It may not have been installed via the manager, or UPnP is not enabled, or there may be a minor issue with Leigod that requires two installations (need to log in via SSH separately).
APP - Hardware Acceleration - Install Router Plugin (Install) - Environment Detection (UPnP) - Log into Router (SSH) - Start Acceleration.
- If the installation times out and binding fails, re-execute the manager and re-bind the device.
- The Lean version only needs to ensure that UPNP is enabled, and the Leigod service is turned on. Click on the router plugin
Install
to bind successfully. If you need to enter the account password for installation, it will revert to the standard version.
Uninstall#
Uninstalling is very simple; just select 2
in the manager and press Enter to confirm. If you installed the Lean version, it will uninstall via opkg.
The blog below includes a list of dependency components; if you're interested, you can try it out. The manager itself will not uninstall these dependencies; it will only cleanly uninstall the Leigod Accelerator-related components.
However, novice users should be cautious not to uninstall dependencies randomly, especially the kmod kernel modules; be very careful.
Reinstall/Update#
Literally, it can reinstall the Leigod Accelerator. If there is an update, reinstalling will get the latest version of the Leigod Accelerator plugin.
It will prompt for uninstallation: [INFO] Confirm uninstallation? Enter the number and press Enter or it will automatically uninstall after 10s ([1] Confirm / [2] Cancel):
Select 1
and press Enter to proceed; it will automatically reinstall.
Disable/Enable Leigod Service#
The Disable/Enable Leigod Service option is straightforward; it allows you to turn the Leigod service on and off. If disabled, you cannot enable the acceleration service in the OpenWrt backend. Disabling and then enabling can restart the Leigod Accelerator, and it will not start automatically on boot after being disabled.
Switch Running Mode#
The switch running mode actually changes the original Tproxy proxy to Tunnel proxy, which is the tunnel.
Tun mode is better for game compatibility because it involves a lower-level network architecture, which I won't elaborate on here. Correspondingly, it consumes more memory and performance than Tproxy.
The default choice of Tproxy offers better performance; it depends on personal preference.
The content in [INFO] is generally printed after restarting the service. If it does not match the output, please let me know in the comments below.
[INFO] Switched to tun mode
match x86_64 -> amd64
uci: Entry not found
sh: : unknown operand
uci: Entry not found
sh: : unknown operand
router is not xiaomi, use general openwrt
/etc/rc.common: line 129: show_openwrt_suggestion: not found
start service: /usr/sbin/leigod/acc-gw.linux.amd64 --mode tun
[INFO] LeigodAcc service has been restarted
[INFO] Switched to tproxy mode
match x86_64 -> amd64
uci: Entry not found
sh: : unknown operand
uci: Entry not found
sh: : unknown operand
router is not xiaomi, use general openwrt
/etc/rc.common: line 129: show_openwrt_suggestion: not found
start service: /usr/sbin/leigod/acc-gw.linux.amd64
[INFO] LeigodAcc service has been restarted
Install Compatibility Dependencies (Host Optimization)#
Choosing to install compatibility dependencies means installing the missing components that were just installed through the Tianling source. This operation may not be very good and may not be compatible with your third-party firmware, as it has not been widely tested!
It is still recommended to use the compiled CatWrt or Tianling's ImmoralWrt for installation.
Actually, the original firmware is also fine as long as it is not nftables (firewall4). This is still a matter of personal preference. This function mainly affects the connectivity detection of gaming consoles, checking NAT types and displaying normal PING after acceleration in matches.
If pkg package does not exist, please switch to supported firmware to resolve it completely. If it is a non-essential component, it can be skipped.
Unknown package 'pkg'.
Collected errors:
* opkg_install_cmd: Cannot install package pkg.
# Here, the absence of tc-full and kmod-netem is quite normal; in some cases, it does not affect normal use. All third-party firmware generally has it, requiring firmware package support.
Disable IPv6 (Mobile Optimization)#
Disabling IPv6 can allow some mobile games or consoles and PCs to function normally through the OpenWrt Leigod Accelerator proxy.
It is important to note that both disabling and enabling require disconnecting and reconnecting your mobile Wi-Fi network to allow the Leigod Accelerator to recognize your device. It is best to forget the connection and turn off the random MAC address (iOS: Private Wireless Network Address).
Switch to Lean IPKG Version#
This feature is experimental and installs the Lean version of the Leigod plugin through the software source, supporting installation from the software source. Lean's LEDE can compile Leigod-acc by itself, and QWRT is pre-installed, which is currently no different from the standard version.
If your software source does not support this version, it will not be installable. Even if you research bypassing the manager's control of the package manager, it will not install for you. You can choose our CatWrt.v24.9 version.
Components#
Only geek players and developers need to understand; novice users do not need to pay attention as the plugin will automatically install what can be installed.
- Necessary components (affect plugin operation)
libpcap
iptables
kmod-ipt-nat
iptables-mod-tproxy
kmod-ipt-ipset
kmod-ipt-tproxy
ipset
kmod-tun
curl
miniupnpd
- Non-essential components (affect in-game PING values, affect NAT type detection)
kmod-netem
tc-full
conntrack
conntrackd
Help#
Currently, the IPK version is being merged with LEDE, and will retain both the official version and the Lean version. The Lean version can compile all dependencies by itself and can set a timer to pause the Leigod Accelerator duration.
If you need help, you can join the Leigod Accelerator experience group 632342113
.
System not supported It is not recommended to use modified firmware available on the market for installation, as such firmware may alter standard OpenWrt system files, potentially leading to unexpected issues. Even though we have now removed firmware detection, we still advise users not to use such versions.
No network You can enable Tun mode to avoid conflicts between the plugin's Tproxy proxy and achieve acceleration proxy coexistence. If you are unsure about the plugin's proxy mode, please disable the Proxy plugin.
Cattools is the exclusive toolbox for CatWrt, allowing for software source configuration. CatWrt must be enabled to install the necessary components for the Leigod Accelerator. We provide the required dependency components for the Leigod Accelerator for installation.
About nftables (firewall4) may not be supported for now. If you are using a pure firewall4 environment, it may not run normally. Please use versions based on luci below 22.x, such as CatWrt/LEDE/QWRT/immoralwrt 22.x/iStoreOS.
If you want to support me in continuing to develop OpenWrt peripherals for Leigod, you can use my code miaoer
to support me. The specific operation is written at the top; I greatly appreciate your support, regardless of whether you have redeemed it before.
This article is synchronized and updated to xLog by Mix Space. The original link is https://www.miaoer.net/posts/blog/openwrt-leigodacc-manager