Habr•November 1, 2026•🇷🇺Translated from Russian

AmneziaWG Container for MikroTik Routers Delivers Top Performance Six Months After Launch

AmneziaWG container for MikroTik routers has evolved significantly since its initial release in February 2026. The project now provides the smallest and fastest implementation of the AmneziaWG protocol on these devices, weighing only 94.7 KB while achieving nearly 300 Mbit/s on Hap Ax3 and 200 Mbit/s on Hap Ax2.

How the Container Works

AmneziaWG consists of 80 percent standard WireGuard and 20 percent custom obfuscation. The container uses MikroTik's hardware-accelerated WireGuard for encryption and implements the remaining AmneziaWG features in software. This approach supports protocol versions 1.0 through 3.1 and allows full routing control directly on the router.

Performance Gains and Code Rewrite

Originally written in Go, the container was later rewritten in C using Claude Code. The change reduced size from 5 MB to 80-90 KB and increased throughput by 50 percent. A separate repository preserves the original Go version. RouterOS 7.24 introduced the privileged=yes parameter, enabling larger network buffers up to 32 MB on multi-core devices and 16 MB on dual-core models. This removed previous throughput limits caused by the 416 KB interface buffer.

Key Features Added

  • Server mode for linking multiple MikroTik routers via AmneziaWG.
  • Random port ranges and periodic port hopping to reduce server detection risk.
  • Full IPv6 support in both client and server modes, including dual-stack DNS resolution.
  • Dynamic DNS hostname support with automatic reconnection on IP change.
  • Selective routing for RU address ranges.
  • MTU auto-adjustment based on S4 padding values.
  • Offline configuration generator that never sends data externally.
  • Auto-recovery options for WARP client use cases.

Protocol Updates and MTU Considerations

Support for AmneziaWG 2.0 added random padding sizes. Version 3.0 introduced traffic pattern imitation for protocols such as QUIC. Recommended S4 values of 12-16 preserve usable MTU; higher values significantly reduce payload capacity. The container now correctly clears the DF flag on PPPoE links to avoid fragmentation issues.

Project History and Availability

An early GitHub ban occurred after test scripts attempted external connections during CI builds. The issue was resolved by removing those tests, and the current repository has remained stable. A Telegram bot was also created to generate Amnezia configs without direct SSH access to servers. The project currently holds more than 370 stars and continues to receive updates focused on stability and performance.

Related articles

Habr•Other

Building Resilient DoH Failover on MikroTik RouterOS to Handle Unreachable Cloudflare Responses

A network administrator encountered a persistent issue in a branch office where pages like Tailwind CSS CDN failed to load despite valid DNS responses from Cloudflare DoH. The problem stemmed from unreachable IP addresses such as 8.6.112.0 and 8.47.69.0 returned by the resolver, which RouterOS treated as healthy because it only checked for valid IP types rather than route reachability. RouterOS supports only a single active DoH upstream via the use-doh-server parameter, requiring custom scripting for failover between multiple endpoints like Cloudflare and dns.google. The solution involved static DNS entries for bootstrap addresses, certificate trust anchors including SSL.com TLS ECC Root CA 2022, and a health monitor script that probes using DNS-JSON API calls instead of switching the resolver directly. Multiple iterations addressed issues like cache-based false positives, plain DNS fallback risks from provider spoofing, and clock validation to prevent certificate failures. The final implementation uses thresholds for failure and recovery to avoid flapping and ensures post-switch verification before committing to a backup endpoint.

Habr•Other

NetRuleRouter Alpha Released to Route Traffic Across Multiple Connections Without Disabling VPN

Developer krox1 has released the first public alpha of NetRuleRouter v0.1.0-alpha.1 for Windows and Linux, a local network policy manager that distributes traffic between primary and secondary connections based on domains, IP ranges, applications, and subnets. The tool emerged from practical issues that intensified after Russian authorities discussed VPN restrictions in March 2026, with operators and platforms later prompting users to disable VPN for domestic services. NetRuleRouter sits on top of existing connections rather than acting as a VPN client or proxy, allowing users to keep corporate VPNs, personal VPNs, and direct internet active simultaneously. It supports seven matching methods including exact domains, wildcard subdomains, CIDR ranges, and application paths, with priority rules to resolve overlaps and built-in leak protection that prevents protected destinations from falling back when the secondary connection drops. The alpha includes diagnostic tracing, preset rule sets for Russia and other regions, import/export capabilities, and a first-run wizard that configures the background service and initial bindings. Limitations around DNS, shared IPs, and brief startup windows are documented, and the project explicitly does not protect against account-level blocks by services such as Anthropic.

Habr•Other

Setting Up Nextcloud Talk on TrueNAS with Custom Domain for Private Family Calls

A detailed guide explains how to deploy Nextcloud Talk on a TrueNAS server behind a custom domain to create a self-hosted messaging and calling platform for family use. The author addresses problems with commercial messengers such as VK notifications failing on iOS and Telegram requiring VPN connections. The solution uses HestiaCP on a VPS for reverse proxying, Let's Encrypt SSL certificates, and port forwarding on a home router to reach the TrueNAS instance at 192.168.0.17:30027. Additional steps cover configuring coturn for TURN relay to enable reliable voice and video calls, updating trusted domains in Nextcloud, and disabling router DoS protection. The setup also enables Screen Sharing, reactions, and push notifications while keeping all data under user control.

AntiMalware•Other

Aladdin Launches Enterprise CA 3.0 with Kubernetes Support and Fourfold Faster Certificate Issuance

Russian vendor Aladdin has released version 3.0 of its corporate certificate authority product, Aladdin Enterprise CA. The update emphasizes Kubernetes and Deckhouse integration to automate certificate lifecycle management and improve cluster resilience. Mass issuance of file-based certificates is now up to four times faster than in the previous release. The product includes native ACME protocol support for automated SSL certificate deployment and adds centralized security logging with SIEM integration. It is positioned as a drop-in replacement for Microsoft CA that allows migration without service interruption. Additional features include support for RED Database, an English-language interface, and expanded administrative capabilities. The new version is currently undergoing FSTEC Russia certification while version 2.x continues to receive security updates.