Imagine the situation: VPN is turned on on your computer, foreign services are working, but some Russian sites, banks or marketplaces are starting to ask you to turn it off.

Turn off VPN - Russian resources open, but some foreign ones become inaccessible. Turn it back on and the problem repeats.

What if you need a corporate VPN, personal VPN, instant messengers, games and regular Internet at the same time?

I'm tired of constantly switching between connections. So I started developing NetRuleRouter - a program that allows you to manage the routing of traffic across sites, applications, IP addresses and networks.

Moreover, NetRuleRouter is not a VPN client. It works on top of existing connections and allows you to choose which of them certain traffic should go through.

I started development on April 1, 2026, I used the first working versions back in the summer, and now I have released the first public alpha NetRuleRouter v0.1.0-alpha.1 for Windows and Linux.

I want to tell you where the idea came from, what the program can already do, how I use it myself, and why, with so many possibilities, it’s still alpha.


Where did it all start?

At the end of March 2026, reports appeared that the Ministry of Digital Development was discussing with Russian digital platforms access restrictions for users with VPN enabled.

On March 30, Kommersant wrote about this. In April, the problem began to manifest itself in practice: according to reports from RBC on April 14, telecom operators and marketplaces began to show users recommendations to disable VPN. On April 16, RBC reported restrictions in the “Government Services” application .

This coincided with a problem that I had encountered from time to time before. I need some resources via VPN, while others are more convenient to open directly. Sometimes it’s not even a matter of blocking, but rather regional restrictions and how a particular service determines the user’s location. For example, when I was on vacation in Vietnam, some Russian sites asked me to turn off the VPN, although I didn’t use it at all. Probably, the services were not satisfied with the foreign IP address, but the explanation for the user looked exactly like this.

The opposite situation also happens: foreign services may refuse to establish connections from certain Russian IP addresses. It turns out to be a paradox: there is Internet on the computer, but different resources require different paths to it.

Of course, traffic routing is not a new task. There are VPN clients with split routing, proxy managers, system route tables, and tools such as sing-box and mihomo. But many of these solutions require understanding configurations, the features of a specific VPN protocol, or the rules of the network system.

I wanted a separate local application with a GUI where I could select two existing connections and specify which sites, programs and networks should work through them.

So on April 1st, the development of NetRuleRouter began. Initially the task seemed relatively simple. But additional questions arose quite quickly. What to do if the VPN goes down? What to do if different sites use the same IP address? How to route individual applications? What happens when rules cross? How to avoid disrupting your corporate VPN? And how can a user even understand where a particular connection went?

From the answers to these questions, the project that I present today gradually grew.

What is NetRuleRouter

NetRuleRouter is a local network policy manager that distributes traffic between two designated connections.

In the program they are called:

  • Primary connection - for example, the Internet via Ethernet or Wi-Fi.

  • Additional connection (Secondary) - for example, VPN, second provider or another network adapter.

The user sets the rules and determines which connection to use for a specific purpose.

For example, you could organize the following diagram:

Resource

Route

Russian websites, banks and marketplaces

Main connection

ChatGPT, Claude and other selected AI services

Additional connection

Torrent tracker sites

Additional connection

Exchange files with torrent peers

Main connection

Games and instant messengers

By selected rules

Individual addresses and subnets

Main or additional connection

This is just an example. The user determines which destinations each route should use.

Moreover, the additional connection does not have to be a VPN. This could be a second provider, a different network card, or another suitable network interface.

NetRuleRouter is not a VPN service, VPN client, proxy or anonymization tool.

It does not provide VPN servers or create its own VPN tunnels. Its job is to manage traffic between connections that already exist in the operating system.

Therefore, it is not necessary to choose which mode the entire computer needs today: “via VPN” or “directly”. You can specify which resources each connection should use.

Rules - not only for websites

It was important for me not to limit myself to a primitive division by application.

NetRuleRouter implements seven ways to match traffic:

  1. Exact domain - e.g. api.example.com.

  2. Domain with all subdomains - *.example.com.

  3. Site in different domain zones - example.*.

  4. Exact IPv4 or IPv6 address.

  5. CIDR subnet or IP address range.

  6. Domain zone or internal domain suffix - for example, .ru or .intra.

  7. Application - by program name, executable file or folder.

Each rule routes eligible traffic through a primary or secondary connection. You can also explicitly prohibit certain network destinations or applications.

NetRuleRouter в тёмной теме. Экран управления правилами.
NetRuleRouter в тёмной теме. Экран управления правилами.

Rules may overlap. For example, one rule routes the entire .ru zone through the main Internet, another sets a route for a specific site, and a third applies to a program.

Therefore, the engine applies a certain order of priorities. More specific rules take precedence over general ones, and the result can be checked in the interface.

There is a separate intersection viewing tool for this purpose.

Просмотр пересечений правил и их приоритетов.
Просмотр пересечений правил и их приоритетов.

Rules can be imported, exported, saved into their own sets, and transferred to other computers.

There are also ready-made presets for different countries. For example, the Russian set contains rules for domestic resources, foreign social platforms, instant messengers, AI services and related applications. ChatGPT, Claude, Gemini and a number of other platforms in it are routed through an additional connection.

However, presets are not universal and definitive lists. Some of their initial content is prepared using AI, and the availability of services and the addresses they use change. Therefore, presets are intended for initial setup and can be edited by the user.

What happens when the VPN goes down

This is one of the features of NetRuleRouter that is especially important to me. Let's say I want Claude or ChatGPT to be used only over a selected VPN connection.

While the VPN is running, relevant traffic is routed through it. But what should I do if the tunnel is broken, the VPN client has not yet started after turning on the computer, or I simply forgot to connect it? Without additional protection, the connection may go to the main Internet channel. For services with regional restrictions, this behavior is not always desirable. The user may not want the selected application to unexpectedly access a server with a different IP address.

Therefore, NetRuleRouter provides protection against traffic leaks.

For a new installation, the default mode is “Only sites from the rules”. It is designed to ensure that destinations that rules send through a secondary connection do not automatically fall back to the primary connection when the VPN is unavailable. At the same time, the rest of the Internet continues to work through the main channel.

There are three modes in total:

Mode

Behavior

Disabled

If VPN is unavailable, traffic may transfer to the main connection

Only sites from the rules

Connections protected by the rules of the additional route are held when it is unavailable

Everything

More stringent traffic restriction policy with exceptions provided

Настройки защиты от утечек. Для новой установки предлагается режим «Только сайты из правил».
Настройки защиты от утечек. Для новой установки предлагается режим «Только сайты из правил».

The idea is simple: if the desired route is not available for the selected service, it is better to temporarily not establish a connection than to automatically send it directly .

However, it is important to consider the limitations of the current alpha. For example, in the “Only sites from rules” mode, immediately after Windows starts, there is a short period before the background service applies the policy. There are also specific considerations for DNS, shared IP addresses, and network configurations.

Therefore, I do not call the protection absolute and do not promise the absence of leaks under any conditions. Known limitations are detailed in the documentation.

Why is this not protection against account blocking?

Here it is worth distinguishing between two things: restrictions at the network connection level and restrictions at the account level.

A good example is the recent situation with Claude.

On October 29, 2026, user reports appeared about accounts being blocked after confirming their identity with Russian documents, including for some people living outside of Russia.

However, the exact reasons for individual blockings are not always known. Experts interviewed by RBC noted that there is no evidence of a targeted mass campaign exclusively against Russian citizens yet.

Anthropic may take into account compliance with service rules, geographic access, identity verification results, and other circumstances.

NetRuleRouter does not protect against such decisions of the service itself.

It does not change account information, does not verify the identity of the user, does not override the regional policy of the platform, and does not guarantee access to the account.

Leak protection relates specifically to network routing, and not to any restrictions of third-party platforms. This is true for both ChatGPT and other services that the user works with through the selected connection.

How to check where traffic is really going

Simply adding a rule is not enough. You still need to be able to check what it does. Therefore, NetRuleRouter now includes diagnostic and connection tracing tools.

The trace shows which programs make connections, which addresses they access, which route they take, and which connections are blocked.

This helps to understand situations where one site uses multiple domains: the main site may load correctly, but the API, authorization, images, or other content access separate addresses.

NetRuleRouter can offer additional addresses for rules, and the final decision on adding them is made by the user.

Предложения дополнительных адресов для выбранного сайта.
Предложения дополнительных адресов для выбранного сайта.

In the trace you can see real connections and the results of their processing.

Трассировка соединений, в том числе заблокированных.
Трассировка соединений, в том числе заблокированных.

There are also logs, diagnostics, site checks, and connection status views. The connection history is stored locally. The storage period can be configured, and the history itself can be disabled or cleared.

Practical example: direct video communication, cloud services via VPN

Let's imagine a normal working day. My development environment is open, GitHub and AI services are running, a video conference is going on at the same time, and updates or large files are being downloaded in the background.

There is no need to send all traffic through one connection. In NetRuleRouter, you can configure rules so that selected cloud services and development tools use VPN, and video communications and programs for downloading files use the main Internet.

This is especially useful when the VPN increases latency or limits your bandwidth. Video calls can work directly without depending on the quality of the VPN connection, and other applications continue to use the routes assigned to them.

Moreover, rules can be set not only for entire applications, but also for individual domains, IP addresses and subnets. For example, one resource in the browser will use the main Internet, and another will use a secondary connection.

Of course, NetRuleRouter does not speed up the Internet on its own and does not combine the speed of two channels. It allows you to distribute connections between them in accordance with specified rules.

This is exactly the behavior I was looking for: so that different network tasks can run simultaneously without forcing me to constantly switch VPNs for the entire computer.

Personal and corporate VPN at the same time

There is another common scenario: a corporate VPN is already running on the computer, through which the company’s internal networks are accessible. At the same time, the user wants to keep his own VPN for other tasks. NetRuleRouter is designed to work over existing network connections, so it doesn't require you to disable your corporate VPN for your personal one.

The corporate connection maintains its own routes to internal networks. NetRuleRouter also allows you to configure which of the two selected connections the corporate VPN itself should be established through.

This is useful if the corporate VPN gateway is only accessible from a specific network or region.

However, there is an important caveat here: NetRuleRouter still manages two main connection roles, rather than an arbitrary number of independent VPN tunnels. Other VPNs can work side by side, maintaining their own routes.

Compatibility depends on specific VPN clients and their behavior. Some enterprise solutions independently change route tables, DNS and system filtering rules, so combinations require verification.

First setup

It was important to me that the user did not have to understand TAP drivers, Wintun, interface metrics and system routing just to route multiple sites through the VPN.

That's why NetRuleRouter has a first-time launch wizard.

After installation, the program prompts you to install and start a background service. It is she who applies the network rules. On Windows, you will need administrator rights to install it once.

The user can then select a starting set of rules: a preset for their region, a demo set, their own files, or an empty configuration.

Выбор стартового набора правил.
Выбор стартового набора правил.

The next step is to select the primary and secondary connections.

Мастер первого запуска NetRuleRouter.
Мастер первого запуска NetRuleRouter.

Here, by the way, we had to solve a rather practical problem. Some VPN clients create several similar virtual adapters and can use a different one the next time they connect. If the program simply binds to the first TAP adapter found, this does not mean that it will be active.

Therefore, NetRuleRouter is able to update the binding of an additional connection if the VPN has moved to another uniquely identifiable adapter. If there are multiple suitable active connections, the program should prompt the user to choose rather than guess.

Основное и дополнительное сетевые подключения.
Основное и дополнительное сетевые подключения.

After completing the wizard, the selected set of rules is applied automatically. Then you can add and change rules through the interface, save your own sets, or work with text files directly.

If necessary, the program allows you to preview changes before applying them.

A little about the internal structure

NetRuleRouter is based on Rust. The network policy engine and a significant part of the internal components are written on it.

The graphical interface is built on Qt 6 / QML and C++.

In addition to it, there are two tools for Rust:

  • nrr-cli - console utility for management and automation;

  • nrr-tui is a full-fledged terminal interface created using the ratatui.

    library

TUI allows you to use the program, including on Linux systems without a graphical environment.

On Windows, routing and filtering are implemented using system mechanisms, including Windows Filtering Platform (WFP).

On Linux, system routes, nftables and a service under the control of systemd are used.

The general decision logic is separated from the platform-specific rules enforcement mechanisms.

Working with DNS deserves special attention. For example, modern websites often share a single IP address across multiple domains. On Windows, in NetRuleRouter, for a more precise separation of such sites, a virtual address mechanism is implemented - fake-IP.

This is only a small part of the technical side of the project.

If Habr's audience is interested and there is a request for details, I will prepare a separate technical article about NetRuleRouter architecture, routing mechanisms, DNS, fake-IP, WFP, nftables and leak protection.

What operating systems does it work on?

The first public alpha is available for Windows and Linux.

For Windows 10 and 11 x64 there is a GUI, Tray, Background Service, nrr-cli and nrr-tui.

There is an EXE, MSI installer and a portable ZIP archive.

Portable builds have also been published for Windows ARM64, but they have not yet been tested on real ARM hardware.

The .deb, .rpm packages and .tar.gz archives are available on Linux. The graphical interface requires Qt 6.6 or later installed on the system. Where there is no suitable version of Qt, you can work through nrr-cli and nrr-tui.

Among the tested configurations:

System

Tested option

Windows 10/11 x64

Full version with GUI

Ubuntu 26.04 LTS

Full version with GUI

Astra Linux 1.7/1.8

Without GUI

EDIT OS 8

Without GUI

For other distributions and architectures there are also builds or compatibility claims, but it is important to distinguish between testing on a real machine and compliance with technical requirements.

A detailed table is available in the documentation for supported systems. macOS is not yet supported.

Several months of real use

I started using the first working versions of NetRuleRouter back in the summer of 2026.

In August, he published preliminary sources on GitHub for self-assembly. Later I added traffic statistics and connection tracing to see what was happening with connections.

I have a CSV download with traffic counters for the period from August 1 to October 30, 2026 - 91 calendar days.

During this period the following volumes were obtained:

Connection

Incoming and outgoing traffic

Basic

1.42 TB

Additional (VPN)

240 GB

Total

1.66 TB

Распределение трафика между основным подключением и VPN по данным локальной CSV-выгрузки. Счётчики виртуальных адаптеров, способные дублировать трафик, исключены из расчёта.
Распределение трафика между основным подключением и VPN по данным локальной CSV‑выгрузки. Счётчики виртуальных адаптеров, способные дублировать трафик, исключены из расчёта.

In October, there was a noticeable increase in traffic on the main connection. Most likely, this is due to the fact that I quite actively downloaded various media files and iso images, and their main traffic was directed there. This is an assumption made by the nature of computer use, not an inference that the program makes automatically.

Of course, such a graph is not a performance test and does not prove error-free routing of each connection. But it shows that NetRuleRouter is already used in a real everyday scenario, and the statistics allow you to observe the distribution of traffic between connections.

Why is it still alpha if there are already so many possibilities?

When I started NetRuleRouter, I didn’t imagine that by the first public release it would have so many features. I developed the tool primarily for my own purposes. As we used it, we discovered new scenarios, compatibility issues, and limitations that we wanted to solve.

This is how advanced rules, leak protection, diagnostics, tracing, traffic statistics, a terminal interface and Linux support appeared.

But there is a fundamental difference between functional readiness and readiness for a stable release.

Just because a program works on my computers does not mean that it works equally reliably with all VPN clients, network adapters, drivers and operating system settings. For a network manager this is especially important.

An error can lead not just to closing the application, but to a temporary lack of Internet access, disruption of network routes, or unexpected protection behavior. That is why the first public version is designated as alpha, despite its fairly wide range of capabilities.

Known Limitations

I decided not to limit myself to the general phrase “errors may occur.” There is a separate document in the repository - "Known Limitations". It describes specific situations in which the current version still works with restrictions: computer startup, some leak protection scenarios, DNS, features of VPN clients, Linux and multi-user systems. For each case, it is explained what is happening and what actions are available to the user.

I especially recommend that you read this document before using strict leak protection or on a computer with a complex corporate network configuration.

Separately published instructions for restoring access to the network if something goes wrong.

What still needs to be done before the stable version

Before the full stable release, NetRuleRouter still has a lot of work left to do. In the roadmap there is a separate section with the requirements that I want to meet before moving to stable.

Among them:

  • full IPv6 testing on real networks;

  • protection of selected sites from the first second of computer startup;

  • restoring protection after restarting the Windows system firewall;

  • elimination of remaining time gaps when changing site addresses;

  • development of security and compatibility on Linux;

  • automatic verification of stated warranties before releases.

In addition, many improvements to the user experience are planned: checking sites through both connections, traffic graphs directly in the program, improved work with other VPNs, updating imported rule sets, notifications about new versions and additional installation methods.

More distant plans include speed limiting for applications, sites and addresses, expanding network policy capabilities and new use cases. The task list is long and I don’t want to set a stable date just for the sake of a pretty calendar. For a program like this, reliability is more important than speed of release. Priorities may change depending on the problems and wishes of users.

Where to download NetRuleRouter

The source code is published on GitHub under the MPL-2.0 license.

First public alpha: NetRuleRouter v0.1.0-alpha.1.

Available for Windows 10/11 x64:

For Linux, .deb, .rpm and .tar.gz have been published, including options without a GUI.

Useful links:

Currently, Windows installers are not signed with a developer certificate, so Windows may show a warning at startup. SHA256 checksums are provided to verify published files and confirm the origin of GitHub builds.

Documentation is available in Russian and English.

For questions, discussions, error messages and suggestions, a Telegram community NetRuleRouter has been created with Russian and English sections. Bugs and suggestions for development can also be submitted via GitHub Issues.

Instead of a conclusion

At the beginning of April, I wanted to solve a fairly simple problem: stop constantly turning my VPN on and off for different sites.

Over the course of several months, NetRuleRouter grew from this idea - a program with which you can independently set routes for sites, applications and networks, use existing connections and check what is happening with traffic.

The first public alpha is an important milestone, but it is far from the end of development.

I'm especially interested in what scenarios other users encounter. Perhaps you have several VPNs running at the same time, use two providers, have complex corporate networks or applications for which conventional split tunneling is not enough.

I will be glad to have questions, error messages and suggestions for project development.

And if the technical side is of interest to Habr’s audience, in the following material you can examine in detail the architecture of NetRuleRouter - from rule selection to system routing, DNS, fake-IP and leak protection.

#SLM #LocalAI