banner
miaoer

miaoer

喵二の小博客 https://www.miaoer.net xLog 分站
tg_channel
telegram
bilibili

OpenWrt Thunder Accelerator Plugin Manager User Guide

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 firmware) and Xiaomi MiROM official 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 👇

1

Using the exclusive Leigod accelerator code miaoer can get 50 hours of non-pausable experience time, achieving acceleration for 6 devices with the OpenWrt client.
PC redemption: Leigod accelerator - More in the upper right corner - CDK/code redemption - Enter miaoer to redeem the time during code redemption.

catwrt-v24.9-leigod


SSH#

First, we need to connect via SSH. You can use the built-in OpenSSH on Windows by entering ssh [email protected] in Windows Terminal or CMD; here, 192.168.1.4 is your OpenWrt address.

Refer to this blog for details 👇

2


Log into the terminal, click COPY on the right side of the blog to paste the code into 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 through SSH login.

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 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 function 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 verify whether the binary file directory exists. If it does, it indicates successful installation with the message: [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; simply enter the Leigod mobile APP and select Install to bind successfully (no need for SSH on the phone).
  • Second: May not have been installed via the manager, or UPnP is not enabled, or there may be minor issues with Leigod requiring two installations (SSH login is needed).

APP - Hardware Acceleration - Install Router Plugin (Install) - Environment Check (UPnP) - Log into Router (SSH) - Start Acceleration.

image

  1. If the installation times out and binding fails, re-execute the manager to re-bind the device.
  2. The Lean version only needs to ensure that UPNP is enabled; if the Leigod service is turned on, clicking the router plugin Install will bind successfully. If you need to enter an 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; feel free to try it out. The manager itself will not uninstall these dependencies; it will only cleanly uninstall the Leigod accelerator-related components.

However, players who are new to dependencies should not uninstall them randomly, especially be very careful with kmod kernel modules.

Reinstall/Update#

As the name suggests, you can reinstall the Leigod accelerator. If there is an update, reinstalling will get you the latest version of the Leigod accelerator plugin.

You will be prompted to uninstall: [INFO] Confirm uninstall? Enter a 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 to turn the Leigod service on and off, which is easy to understand. 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 after booting.

Switch Running Mode#

Switching the running mode essentially changes the original Tproxy proxy to a Tunnel proxy, which is also known as a tunnel.

Tun mode has better compatibility for gaming because it involves lower-level network architecture, which I won't elaborate on here. Correspondingly, it consumes more memory and performance than Tproxy.

The default choice is Tproxy for 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 here means installing the missing components that were just installed via 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 depends on personal preference. This feature mainly affects the connectivity detection of gaming consoles, checking NAT types and displaying normal PING after acceleration in the game.

If pkg package does not exist, please switch to supported firmware to resolve the issue completely. If it is a non-essential component, it can be skipped.

Unknown package 'pkg'.
Collected errors:
 * opkg_install_cmd: Cannot install package pkg.

# It is quite normal for tc-full and kmod-netem to be missing here; in some cases, it does not affect normal use. Most third-party firmware should have 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 the mobile Wi-Fi network so that the Leigod accelerator can 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 via the software source. It supports installation from the software source. Lean's LEDE can compile Leigod-acc by itself, and QWRT comes pre-installed, which is currently no different from the standard version.

If your software source does not support this version, installation will not be possible. 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.

3

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.

  • Essential 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 merging with LEDE, and it 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 and may cause 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 stagger the plugin's Tproxy proxy to achieve coexistence of acceleration proxies. If you are unsure about the plugin proxy mode, please disable the Proxy plugin.

Cattools is the exclusive toolbox for CatWrt, which can configure the software source. 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. Regardless of whether you have redeemed it before, I greatly appreciate your support.

leigod

This article is synchronized and updated to xLog by Mix Space. The original link is https://www.miaoer.net/posts/blog/openwrt-leigodacc-manager

Footnotes#

  1. https://www.miaoer.net/posts/blog/cattools

  2. https://www.miaoer.net/posts/blog/ssh-connection-to-openwrt

  3. https://www.miaoer.net/posts/network/catwrt

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.