Interviewed by: Mehadi Hasan
Developer: Roman Madaev
Role: Full-Stack Developer and System Administrator
Location: Moscow, Russia
Website: neurocrat.io
Roman Madaev's approach to software development starts with a question many developers only consider after something goes wrong: what happens to the user if the application fails halfway through a task?
That question connects several of his projects, from AURA, a Windows VPN client written in Python, to REGENT, an AI-assisted tool for configuring OpenWrt routers. It also influences his security testing utilities, his approach to asynchronous programming, and the way he builds web applications.
With more than six years of experience across web development, system administration, and automation, Roman has worked on everything from landing pages and online stores to CRM dashboards and a food ordering platform. Alongside his professional work, he develops independent tools that address practical problems he has encountered himself.
His projects reveal a consistent engineering philosophy: software should not merely work when everything goes according to plan. It should explain failures, protect existing system state, and give users a reasonable way to recover when something breaks.
From Learning to Code at 14 to Managing Systems at 17
Roman began learning programming at 14. By 17, he was already working as a system administrator at Meridian College, where he was also studying.
His responsibilities included managing the college website and local network. The work gave him an early opportunity to understand technology beyond the code displayed in an editor. Websites depended on servers, networks connected systems, and problems often required investigating several layers before their causes became clear.
His vocational education covered JavaScript, HTML, CSS, PHP, client-server architecture, and relational databases. Coursework introduced him to building small web applications, but working on actual systems gave him a broader perspective on how software operates.
Roman was also involved in helping computer science teachers explain topics to students and prepare learning materials. That experience added another dimension to his technical work: understanding a system matters, but communicating how it works matters too.
An early milestone came during a programming olympiad involving three colleges. Participants had to build and debug a small web application in JavaScript or PHP under time pressure. Roman finished second.
The experience influenced the way he approaches deadlines today. Rather than attempting to perfect every detail immediately, he first establishes a working structure and then improves it.
That principle has remained useful throughout his career. When time is limited, a functioning foundation provides something concrete to test, debug, and refine.
How His Engineering Priorities Changed With Experience
Roman began professionally by building landing pages and online stores at a web studio. Later, he moved into CRM systems and dashboards, and he now works on a food ordering platform for Foodison.
The progression brought increasingly complex engineering concerns. Building a page that displays correctly is one challenge; maintaining a system as its dependencies, data flows, and business requirements change is another.
His priorities have shifted accordingly.
Migration work, for example, involves more than replacing one library with another. Roman has worked on moving from Vue 2 to Vue 3 and from Vuex to Pinia. Such changes need to preserve existing behaviour while making the application easier to maintain.
Payment processing presents a different problem. A payment flow must avoid creating duplicate orders, even when requests or responses do not behave as expected. API clients also need thoughtful handling of caching and data freshness, while deployments should minimise disruption for users.
These concerns have made maintainability a central criterion in his decisions. Tests, CI/CD, and clear boundaries between application layers are not simply additions to a project; they help make future changes safer and easier to reason about.
His background in system administration reinforces that mindset. Having worked with networks and servers, he naturally considers failures, recovery, and the possibility that an operation may stop before it finishes.
Choosing Technologies Based on the Problem
Roman does not begin a project by selecting his favourite framework. He starts with the requirements and chooses the technology accordingly.
For stores and location-based pages where search engine visibility and fast initial loading matter, he uses Vue with Nuxt.js and server-side rendering. For internal tools and dashboards, a Vue single-page application may be more suitable, particularly when live updates through WebSockets are needed.
Python is his choice for automation, networking tasks, and desktop utilities. For smaller REST backends in personal projects, he uses PHP with Slim 4.
This approach reflects the breadth of his work. Frontend development helps him understand how software feels to use, while backend and infrastructure experience helps him understand what happens behind the interface.
The result is a practical way of thinking about architecture: the technology stack should serve the project rather than dictate its design.
That philosophy becomes particularly clear in his independent tools, where he builds the components needed to solve a specific problem instead of relying entirely on existing applications.
AURA: Building a Windows VPN Client From Scratch in Python
AURA began with a practical problem at work. Roman needed to access a closed network through L2TP/IPsec, but the built-in Windows 10 VPN client refused to connect.
The immediate difficulty was not simply the failed connection. The client provided no useful logs explaining which stage had failed, leaving him without a clear way to diagnose the problem. He also could not find another program that handled the required task.
Rather than accepting those limitations, Roman decided to build his own VPN client, implementing the protocol stack down to key exchange.
AURA is written in Python and does not use Windows' built-in VPN connection mechanisms such as RAS or rasdial. Instead, it implements its own IKEv1/IPsec, ESP, L2TP, and PPP stack.
For network traffic, it uses a virtual adapter named AURA based on Wintun, the driver from the WireGuard project. On Windows, the application manages system routes and DNS records, requests administrator privileges through User Account Control at startup, and can store passwords and keys at the user's request, protecting them with Windows DPAPI.
The cryptographic primitives are implemented using PyCryptodome, while the protocol implementation follows the relevant RFC specifications.
Negotiating With Real VPN Servers
One of AURA's significant engineering challenges is negotiating connection parameters with the server.
The application offers 18 IKE variants involving AES or 3DES encryption, SHA-256 or SHA-1 hashing, and Diffie–Hellman groups 14, 5, or 2. It then uses the variant selected by the server.
Authentication must also match the server's requirements. Depending on the configuration, this may involve MS-CHAPv2, CHAP, or PAP, followed by IPCP negotiation for IP addressing and DNS. MPPE is supported where required by the server.
Implementing the protocols was only part of the challenge. Roman also needed to make connection failures understandable to someone who might not know how IKE negotiation works.
Turning Silence Into a Useful Error Message
The built-in VPN client gave Roman little information about why a connection failed. AURA approaches the problem differently by displaying each connection stage in its status bar and log.
One particularly difficult case involves an incorrect pre-shared key. The server may not explicitly reject the key; it may simply stop responding.
AURA interprets that silence in the context of the negotiation sequence. During IKEv1, the first four messages are sent unencrypted, while the fifth is the first protected by a key derived from the pre-shared key.
If the server responds to the first four messages but becomes silent at the fifth, AURA reports that the pre-shared key may be incorrect and highlights the relevant field. If the server does not respond to the early messages, the application instead reports that the server is not responding.
When the server explicitly rejects a login, AURA highlights the username and password fields.
Roman also takes care not to treat an undecipherable or unverifiable response as definitive evidence of an authentication failure. A forged packet should not be allowed to determine the application's verdict.
This is a useful distinction between detecting an error and explaining it responsibly. A good diagnostic system must interpret the evidence it receives without claiming more certainty than that evidence supports.
Recovering Cleanly From System Changes
A VPN client can change more than its own internal state. It may modify routes, DNS settings, and virtual network adapter configuration.
If the application crashes halfway through these operations, the remaining system state could affect connectivity even after the application stops running.
AURA addresses this by recording each system change before applying it and reverting changes in reverse order. If the program crashes, the next launch attempts to remove changes left behind.
Roman also encountered differences between protocol specifications and the behaviour he could verify on real servers. For example, although RFC 3948 permits a zero checksum for the inner UDP packet, zero is the default in AURA because that was the value he verified against a real server. An automatic mode calculates the checksum but is not enabled by default.
The project remains under development. Connections can occasionally drop, and in-place rekeying and automatic reconnection are planned improvements.
AURA illustrates one of Roman's recurring lessons: implementing a protocol according to its specification is not the end of the work. Real systems must be tested, failures need to be interpreted carefully, and changes to the operating system must be reversible.
Explore the project: AURA on GitHub
REGENT emerged from another frustrating experience with infrastructure.
Roman's own OpenWrt router once stopped passing traffic even though its web interface appeared normal. It took him an entire day to identify four separate configuration errors, none of which was visible on the page where he had made the settings.
He saw an opportunity for an AI assistant that could inspect the router's configuration as a whole, explain what was broken, and apply requested changes expressed in ordinary language.
Rather than exposing a general-purpose command line to the model, he chose the Model Context Protocol (MCP). The idea is to give the model a defined collection of tools with controlled behaviour, rather than leaving it to construct arbitrary commands for every task.
REGENT runs as an MCP server that communicates with its client through standard input and output. It does not open network ports.
Its implementation uses FastMCP to expose tools for router topology, UCI configuration changes, backups, diagnostics, firewall settings, Wi-Fi, package management, and other operations. AsyncSSH maintains a reusable SSH session with the router.
Roman separates command construction and output parsing from the transport layer, keeping these responsibilities in independent functions.
He also implements composite operations for tasks that require several coordinated changes. For example, giving clients internet access involves six changes across three configuration files in a defined order. That procedure lives on the server instead of requiring the model to reconstruct the sequence each time.
The routerTopology tool reads the full configuration in one pass and attempts to explain what is broken and why traffic is being blocked. When a change is requested, REGENT translates it into ordered UCI and ubus commands, executes them over SSH, and restarts the service responsible for the affected configuration.
The emphasis is on actionable diagnosis rather than a long list of disconnected settings.
Protecting the Router When Something Goes Wrong
AI-assisted infrastructure management introduces a particular risk: a configuration change can disconnect the very network connection needed to reverse it.
Roman designed REGENT with this failure scenario in mind.
Read operations are always available, while configuration changes require the OPENWRT_ENABLE_WRITE=1 environment variable. Reboots, firmware flashing, and factory resets require separate confirmation for each call.
Before a risky change, REGENT copies the relevant configuration files and schedules a restoration on the router itself, normally after 90 seconds. If the router responds after the change, the restoration is cancelled. If it does not, the previous settings are restored.
Running the rollback on the device matters because the process can survive an SSH session dropping. REGENT also supports dry runs.
The project includes safeguards for sensitive information. Wi-Fi passwords, VPN keys, and subscription links are removed before information reaches the model or command log. REGENT uses a dedicated SSH key rather than a personal one.
Roman is also explicit about the limitations. The safeguards reduce risk but do not eliminate it. The routerExec tool can execute arbitrary commands outside the special tools' guardrails, so he recommends keeping backups and maintaining physical access to the router.
At the time of his interview, REGENT had been tested on one device: a TP-Link Archer C59 running OpenWrt 23.05.4. Its tests use a fake SSH transport with data copied verbatim from a live router, including the configuration state from when the router was broken.
Those boundaries are important. REGENT demonstrates an approach to AI-assisted infrastructure management, but its current testing scope should not be mistaken for broad device compatibility.
Explore the project: REGENT on GitHub
Roman has also built two security testing utilities: CR4SH3R and NR34P3R. Both are intended for educational use and authorised testing.
CR4SH3R focuses on arbitrary file upload vulnerabilities in WordPress plugins. Roman developed it after a friend asked him to examine a WordPress site and he discovered plugin vulnerabilities that exposed sensitive data.
The tool automates vulnerability discovery and data extraction, provides a graphical interface, and supports extensible payloads. The experience also demonstrated how much sensitive information a single exposed file, such as wp-config.php, can reveal.
NR34P3R grew out of a different experience. After conducting a penetration test on his own laptop, Roman found himself manually searching the web to identify the purpose of each discovered port.
That process led him to a broader question: what value does a scanner provide if its results still require substantial manual research before they become useful?
NR34P3R is a multithreaded port scanner that attempts to identify the services associated with discovered open ports. Its built-in database contains more than 3,000 services, allowing results to include contextual information instead of just port numbers.
The scanner uses 100 concurrent threads and supports 34 common ports, individual ports, arbitrary ranges such as 8000–9000, and the full port range from 1 to 65535. Results appear in tables with a real-time progress indicator, and users can export them for further analysis.
Balancing Speed With Honest Results
NR34P3R highlights a familiar trade-off in network tooling. More concurrent threads can accelerate scanning, but they also increase the load on both the machine running the scanner and the target.
Timeouts create another limitation. A short timeout makes scanning faster but may cause slow hosts to be missed.
Roman chose threads because port scanning largely involves waiting for network responses, and threads offered a straightforward way to run many blocking socket checks in parallel. He did not initially consider asyncio, but he would consider it for a rewrite because asynchronous I/O can handle thousands of pending connections with lower overhead than 100 threads.
His most important lesson concerns the interpretation of results. A closed port and a slow host skipped because of a short timeout can look identical to a scanner. A reliable tool must acknowledge that uncertainty instead of presenting every result as conclusive.
Planned improvements include host reachability checks, JSON reports, ASN lookup, and a ping sweep to avoid wasting time scanning unreachable hosts.
Explore the projects: CR4SH3R on GitHub and NR34P3R on GitHub
Asynchronous Python and the Importance of Responsiveness
Roman is continuing to develop his understanding of Python's asynchronous capabilities, including asyncio, aiogram, and asyncpg. His progress has been slower than he originally planned, but REGENT has provided practical experience with asynchronous systems through AsyncSSH, FastMCP, and tests using pytest-asyncio.
The project taught him several important lessons: avoid blocking the event loop, share a reusable SSH session safely between tool calls, and put a timeout on every command. REGENT uses a default command timeout of 30 seconds.
For Roman, responsiveness is not just a performance metric. A program that hangs can frustrate users even if its underlying operations are eventually correct. Predictable execution and clear failure handling are equally important.
The same concern appears in VOCIS, his unreleased Windows microphone-processing tool.
VOCIS is designed to process microphone input locally in real time. Its planned processing pipeline includes RNNoise noise reduction, a digital signal processing chain with a low-pass filter, noise gate, compressor with automatic gain, and limiter. It also mutes output when the user is silent and sends the processed audio to a virtual microphone.
The processing runs on the CPU without recording audio to disk. Roman reports that noise reduction and processing take approximately one millisecond of CPU time per 10-millisecond audio block inside the audio callback. The voice-detection model runs in a separate thread, limited to two PyTorch threads so that it does not take time away from audio processing.
The project is not yet released. A Microsoft-signed driver and the higher-quality DeepFilterNet noise suppressor are among the planned improvements.
Although REGENT and VOCIS address very different problems, both demand predictable behaviour. A router tool must not leave the network inaccessible, and an audio tool must not interrupt the sound it is processing. In each case, responsiveness and recovery are part of the product's core requirements.
The Principle Behind His Projects: Design for Failure First
When asked what changed his approach to development most, Roman pointed to a principle that connects his work across networking, infrastructure, and application development: design for failure earlier than the happy path.
AURA records system changes before making them so that leftover changes can be reverted after a crash. REGENT schedules a rollback on the router itself before applying a risky configuration change.
Both decisions begin with the same question: what will remain for the user if this breaks halfway?
It is a practical way to think about reliability. Instead of treating recovery as a feature to add once the main functionality is complete, the developer considers failure scenarios while deciding how the feature should work.
Roman's recommendations for developers building Python applications, networking utilities, or security tools follow directly from that experience:
- Test against real devices and servers. Specifications and test data cannot fully represent the behaviour of every real environment.
- Use fake transports and recorded outputs. Most tests can run without physical hardware when external interactions are represented accurately.
- Make dangerous operations explicitly opt-in. Risky actions should require deliberate permission rather than being available by default.
- Use security tools responsibly. Testing should be limited to systems you own or have permission to assess.
These lessons are particularly relevant to tools that interact with operating systems, network infrastructure, and security-sensitive data. A failure can affect more than the application's own process, so developers need to account for the state their software changes.
Building neurocrat.io and Bringing His Interests Together
Roman's current main focus is neurocrat.io, his bilingual Russian- and English-language IT blog covering programming, security, anonymity, and technology news.
He develops both the frontend and backend himself. The frontend uses Vue 3, while the REST API is built with PHP and Slim 4.
The site includes role-based access control with CASL, a TipTap editor that stores content as plain Markdown, and AI-assisted translation. It also supports light and dark themes, loading skeletons, and stale-while-revalidate caching with ETag revalidation.
Security and maintainability receive attention alongside the visible features. Roman has worked on a strict Content Security Policy, sanitised Markdown, automated tests, and search engine optimisation.
The blog brings several parts of his experience together. Frontend development shapes the reading and editing experience, backend development supports the site's functionality, and his systems and security background informs decisions about caching, access control, and application protection.
Looking ahead, he wants to keep developing in web engineering, system administration, and cybersecurity. He also wants to explore AI-driven infrastructure management further, building on what he has learned from REGENT.
His plans for AURA include in-place IPsec rekeying and IKEv2 support, while REGENT is expected to gain support for OpenWrt 24.10.
These are continuing projects rather than finished destinations, and Roman's approach leaves room for further testing, refinement, and learning.
About Roman Madaev
Roman Madaev is a full-stack developer and system administrator based in Moscow, Russia, with more than six years of experience in web development and enterprise systems. His technical work spans Vue.js, Nuxt.js, JavaScript, PHP, Python, networking, and automation.
His independent projects include AURA, a Python-based Windows VPN client; REGENT, an MCP server for AI-assisted OpenWrt configuration; and the security testing tools CR4SH3R and NR34P3R. He is also developing VOCIS, a real-time microphone-processing tool, and maintaining his bilingual IT blog, neurocrat.io.
Roman is interested in the intersection of web development, system administration, cybersecurity, and AI-assisted infrastructure management.
Developer Stories is a CoderLegion interview series highlighting the people, ideas, and engineering decisions behind software development.