中文|English
A turboacc package for official OpenWrt (22.03/23.05) firewall4, including the following features: software flow offloading, Shortcut-FE, full-cone NAT, and BBR congestion control algorithm.
Compilation and Testing:
- In the directory where the OpenWrt source code is located, execute the following commands:
curl -sSL https://raw.githubusercontent.com/chenmozhijin/turboacc/luci/add_turboacc.sh -o add_turboacc.sh && bash add_turboacc.sh
This will download luci-app-turboacc, nft-fullcone, replace firewall4, libnftnl, nftables and apply 952 and 953 patches.
After the setup, execute:
make menuconfig
Navigate to > LuCI > 3. Applications and select "luci-app-turboacc".
If you want to use GitHub Actions for cloud compiling OpenWrt with the official source code and turboacc, you can refer to this repository: OpenWrt-K.
- Software flow offloading (Flow Offload) is a feature built into firewall4 (see firewall4 Makefile). It is generally well-compatible and stable, so SFE (SFE-related features) might not be necessary.
- If SFE is not required, you can skip the 953 and 613 patches.
- The default method provided will replace firewall4, libnftnl, and nftables with the latest patched versions. If you encounter issues, you can try using older versions of firewall4, libnftnl, and nftables (available in the "package" branch).
The luci-app-turboacc in this repository is based on the luci-app-turboacc from the LEDE repository. It has been modified to remove DNS-related features and add support for firewall4, but it no longer supports firewall3.
Dependencies for Each Feature:
- Software Flow Offloading (Flow Offload): kmod-nft-offload (Included in official OpenWrt)
- Shortcut-FE: shortcut-fe, 952 patch, 953 patch
- Full Cone NAT (FULLCONE NAT): nft-fullcone, patched firewall4, libnftnl, nftables, and 952 patch
- BBR Congestion Control Algorithm: kmod-tcp-bbr (Included in official OpenWrt)
Unofficial dependencies for OpenWrt not included by default are available in the package branch.
Special thanks to the following projects:
- coolsnowwolf/lede (Source of 952, 953 patches, and SFE)
- wongsyrone/lede-1 (Source of firewall4, libnftnl, nftables patched patches)
- fullcone-nat-nftables/nft-fullcone (Dependency for Full Cone NAT)