⚡ The main thing in 60 seconds (TL;DR)
⏱ ~ 12 мин чтения- I have two very different ASUS at home: the new GT-BE19000AI and the old RT-AC87U. I wanted to control nfqws2 on my router via a browser: select...
- I have two very different ASUS at home: the new GT-BE19000AI and the old RT-AC87U.
- The connection to the service remains direct, the external IP itself does not change.
I have two very different ASUS at home: the new GT-BE19000AI and the old RT-AC87U. I wanted to manage nfqws2 on the router via a browser: select devices, change strategies, deal with errors and transfer working settings between users.
From this task grew NFQWS2 ASUS Community - a community adaptation of nfqws2 for ASUSWRT-Merlin with Entware. Now the project also has native OpenWrt packages, and the panel has received a new design.
I’ll tell you how the application is structured, what features of the firmware had to be taken into account, and why so much attention is paid to previewing and returning changes in the interface.
The discussion will return here: t.me/nfqws2AsusCommunityChat

The screenshots use demo settings.
The basis of the project and my part of the work
The project relies on zapret2, nfqws2-keenetic and nfqws-keenetic-web. Traffic processing methods and the basis of the web interface came from these projects.
My part is adaptation to ASUS, integration with firmware, packaging, panel development, importing and exchanging profiles, setting up SmartDNS, diagnostics and OpenWrt support.
NFQWS2 receives selected packets via NFQUEUE and applies the specified processing strategy to them. The connection to the service remains direct, the external IP itself does not change. The effect depends on the DPI device of the provider, the protocol and the selected parameters. If the reason for the unavailability of the service is beyond the capabilities of such processing, installing the package will not eliminate it.
Setting up on a router is convenient for a home network: a separate nfqws2 client is not required on a phone, TV and computer. However, you can limit processing to a few devices.
What's inside
The web panel is written in React and TypeScript, uses Material UI and CodeMirror. Assembly is done via Vite. Ready-made interface files are installed on the router; there is no need to run the Node.js development environment there.
The PHP backend interacts with service scripts and platform-specific components.
Part | ASUSWRT‑Merlin with Entware | Native OpenWrt |
|---|---|---|
Web server | Separate lighttpd | System uhttpd |
Services | Entware Init scripts and integration with ASUS | procd |
WAN Definition | ASUS firmware data | netifd |
Packet transmission to NFQUEUE | IPtables and ip6tables rules | firewall4 and nftables |
Location of basic settings | In the tree /opt | In the tree /etc |
The panel is general, and working with network, services and installation is platform-sensitive. Thanks to this, OpenWrt does not have to reproduce the Entware environment.
Why one working binary is not enough
On a router, the process may run successfully and not process anything useful. Therefore, checking the engine running is only part of the adaptation.
You need to determine the real WAN, set appropriate firewall rules, take into account NAT and make sure that the kernel can transfer packets to NFQUEUE. The ASUS adapter provides checks for the necessary rules in the time chain. The absence of a module in lsmod output does not in itself mean the absence of a feature: the component can be built into the kernel.
A separate story is RT‑AC87U with Merlin 384.13_10. For this exact connection, the ARMv7 package has an additional module nfnetlink_queue. Before loading, the model, firmware version, kernel and checksums of standard files are checked. Kernel side module compatibility checks are preserved.
Such a module cannot be considered a universal solution for any ASUS with a similar core number. Here, compatibility is tied to specific firmware.
Newer devices have a different class of problems. Some ASUS firmware contains ARK, a traffic processing module associated with separate QoE and filtering functions. It may interfere with the delivery of packets to NFQUEUE.
For this purpose, there is an “ARK Check” in the panel. Provisioning saves a backup of the affected settings and disables the associated features. The user then manually reboots the router and repeats the test. A normal package installation does not change these settings.
If ARK is missing, the panel reports that no preparation is required.
New design and setup procedure
In the current version, the main design is the Rabbit theme: a dark background, calm blue accents, more noticeable margins and a uniform window style. In the menu you can return to the classic design.
For setting up long-form strategies, readability is most important. The editor has options highlighting, visual line breaks, and warnings about quotes. True line breaks are different from hyphens, which are only needed to display text. TCP, QUIC and UDP blocks can be edited separately.

A syntax warning helps you find an input error, but the functionality of the strategy is still checked on the user's network.
The “Where to start” screen shows the sequence of actions and the status of the stages: check the router, select devices and profile, connect DNS if necessary, start processing and check the service.

After the first installation, processing is turned off. First, the user sets the scope and parameters, then enables the service.
Which sites and which devices to process
In the panel these are two independent selections.
The first is the mode of working with domains:
Mode | What's going on |
|---|---|
List | Using user list user.list |
Auto | Auto.list is added to the user list, which is updated when problems with connections are detected; exceptions taken into account |
All | Traffic that matches the settings is processed taking into account exclude.list |
Auto maintains an automatic list of domains. He does not select a working strategy.
In any mode, ports, protocols and policy filters continue to operate. Therefore, All cannot be understood as unconditionally sending each packet for processing.
The second choice is devices: all clients, only specified IPs or subnets, or all except those specified.
For example, you can select List and add only IP TV. Then nfqws2 will process suitable TV connections to domains from the list. For such a scenario, the TV address should be assigned to DHCP.
IPv6 is enabled separately. The choice of nfqws2 clients also does not determine the scope of SmartDNS: DNS is connected by its own master.
Import profile with preview and change log
When exchanging strategies, one line of parameters is not enough. It can reference lists of domains, Lua files, and blobs—binary data used by the strategy. If the dependency is lost, the transferred settings may give a different result.
Therefore, the JSON profile allows you to transfer the strategy along with the required resources and DNS settings. The profile can be opened from a computer or selected from a cloud directory.
First, everything that the profile author included is selected. The user can turn off unnecessary parts and see a "was/will be" comparison.

In the import implementation the operation goes through a prepared plan and a change log. Before recording, it is checked that the source data has not changed after preparation. Resources are written before the main config; the config is replaced via a temporary file. The log allows you to restore the state after an operation is interrupted.
There is also a cancellation of the last import. It checks the current content so as not to overwrite subsequent manual edits by the user.
When importing, the settings of someone else's WAN and someone else's local client addresses do not replace the settings of the receiving router. Supported resource paths are platform-adapted.
For DNS there is an additional rule: the import populates the SmartDNS draft. Connecting this draft is done separately.
SmartDNS and return in 120 seconds
Access problems can start with DNS. The panel allows you to assign individual resolvers to selected domains, use DoH and DoT, and, if necessary, set fixed responses.
SmartDNS is connected as an additional component. On Merlin, the stock dnsmasq continues to serve DHCP and local names, while external requests are passed on to the local SmartDNS. The integration uses dnsmasq.postconf and takes into account existing settings.

Changing DNS affects access to the network, so the connection is arranged in stages. The user verifies the profile, starts a test connection, and is given 120 seconds to test sites from their device. Then you need to confirm the result with the “DNS is working - leave settings” button. Without confirmation, the security mechanism returns the previous DNS.
The draft and previously confirmed profile are stored separately. When updating, the application restores the verified profile, even if the user has already started editing another option. Explicitly reverting to the previous DNS overrides this restoration.
The connection status takes into account not only the presence of the SmartDNS process, but also the redirection of dnsmasq requests. This helps you notice when a VPN or other service has changed the DNS path.
When checking from a phone, you need to take into account Private DNS and DNS inside the VPN, and from a computer, the built-in DoH of the browser: requests can pass by the router.
OpenWrt support and compatibility boundaries
The native version of OpenWrt uses procd, netifd, firewall4 and nftables. IPKs for OpenWrt 24.10 and APKs for OpenWrt 25.12 are released for it. The package is selected based on the system series and the exact DISTRIB_ARCH value.
The same ASUS model with Merlin and OpenWrt requires different packages. The name on the case does not define the software environment.
At the moment, the hardware check table looks like this:
Device | Firmware | Package option |
|---|---|---|
ASUS GT‑BE19000AI | Merlin 3006.102.9_0 | ASUS with Entware aarch64-3.10 |
ASUS RT‑AC87U | Merlin 384.13_10 | ASUS with Entware armv7-2.6 |
ASUS RT‑AC87U | OpenWrt 24.10 | Native OpenWrt |
For other combinations of models and firmware, the presence of a package of the desired architecture means the possibility of further verification. Successful assembly and test run of the engine does not replace testing on the device.
On OpenWrt, hardware and software flow offloading must be taken into account separately: an accelerated flow can bypass NFQUEUE. The panel checks the associated settings and shows the required actions.
How to check the result
For diagnosis, it is useful to distinguish between three levels.
The process has started. The engine has accepted the parameters and is running.
Packets arrive at NFQUEUE. The required traffic reaches the handler.
The service works from the client device. The actions required by the user have been checked.
The second level in the panel can be checked in a ten-second interval: start checking the receipt of packets and at this time open the service from the selected client.
The third level requires checking the application itself. For YouTube, this is video launch, rewind and buffer behavior; for Discord - including voice. Opening the main page does not yet describe the operation of the entire service. After changing the strategy, it is worth creating new connections.
For additional network tests, a separate installation of DPI Detector is provided. Its results can be attached to the report along with the router diagnostics.
Speed and resource consumption depend on the model, strategy, lists and traffic composition. The result on the GT-BE19000AI cannot be automatically transferred to the RT-AC87U or other architecture.
Updates and sharing of working settings
The update from the panel is divided into preparation and installation. Before installation, the release signature with the pinned key, the size and SHA256 of the package are checked. The settings and selected service state are saved. There is currently no automatic rollback of the package version; import cancellation is a separate mechanism.
In Build 73, the strategy catalog was moved to a new HTTPS source with signature verification and checksums retained.
Feedback is provided via "Export/Share". The user selects a strategy, dependencies, DNS and diagnostic data, selects a provider and describes the result. A preview is available before shipping; You can download the JSON for yourself.
Transfer to the project is carried out using a separate “Submit” button. Connecting a sending channel does not itself send materials. The resulting profile is also not published in the directory automatically.
Particularly useful for reproducibility are the following test conditions: model, firmware, provider, service, and VPN influence. A profile with such a description provides more information than a “works for me” message.
How to try
ASUSWRT‑Merlin requires SSH and Entware installed in /opt. OpenWrt uses a native installer.
Current commands and packages can be found in quick start, OpenWrt instructions and releases.
After installation:
Open http://IP router:90.
Pass the Getting Started checks and, if required, ARK training.
Select devices, import a profile or set a strategy.
If necessary, connect and confirm SmartDNS.
Launch nfqws2 and check the required actions in the service from the selected device.
Next I want to expand hardware checks and the profile catalog, improve diagnostics and check long-term operation along with other network services. For this purpose, reproducible reports with specific connection conditions are useful.
NFQWS2 ASUS Community Repository · Compatibility Table · Report a bug
Thanks to the authors of zapret2, nfqws2-keenetic, nfqws-keenetic-web, SmartDNS and DPI Detector. ASUS adaptation code is distributed by MIT; third party components retain their licenses and attribution. For details, see Component Origin Description.
💬 Discussion 0
BBCode & Emoji supportedParticipate in discussions, ask authors questions, and share benchmarks by joining the ProArena engineering community.