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, paired with the OpenWrt client for acceleration on 6 devices.
PC redemption: Leigod accelerator - More in the upper right corner - CDK/code redemption - Enter miaoer to redeem during code redemption.

catwrt-v24.9-leigod


SSH#

First, we need to connect via SSH. Here 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 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 invisible; see 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 required component has been installed, skipping
[INFO] iptables required component has been installed, skipping
[INFO] kmod-ipt-nat required component has been installed, skipping
[INFO] iptables-mod-tproxy required component has been installed, skipping
[INFO] kmod-ipt-ipset required component has been installed, skipping
[INFO] ipset required 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 output may be 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 here, 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, executing the official script once and outputting a lot of content.

Until the official script ends, it will check 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 correctly 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 minor issues with Leigod requiring two installations (need to log in via SSH separately).

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

image

  1. If the binding fails due to timeout, re-execute the manager to rebind the device.
  2. The Lean version only needs to ensure UPnP is enabled; if the Leigod service is turned on, just click the router plugin Install to 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 dependent components; if 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 not randomly uninstall dependency components, especially kernel modules like kmod; be very careful.

Reinstall/Update#

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

It will prompt for uninstallation: [INFO] Confirm uninstallation? 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 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 if disabled.

Switch Running Mode#

The switch running mode actually changes the original Tproxy proxy to Tunnel proxy, which is the tunnel.

Tun mode has better compatibility for gaming 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 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 means installing the missing components just installed via the Tianling source, as this operation may not be very good and may not be compatible with your third-party firmware; 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, detecting 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 to lack tc-full and kmod-netem; in some cases, it does not affect normal use. Most third-party firmware should have it, depending on 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 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 via the software source, supporting 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, it cannot be installed. 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.

  • 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 the official version and Lean version will be retained. 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, leading to unexpected issues. Even though we have 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 that can configure software sources. 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) It may not be supported at the moment. 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.