<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: MrChifir</title>
    <description>The latest articles on DEV Community by MrChifir (@mrchifir).</description>
    <link>https://dev.to/mrchifir</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4278943%2F311d7fda-6d5c-49eb-86fc-fb8b780f2bc4.png</url>
      <title>DEV Community: MrChifir</title>
      <link>https://dev.to/mrchifir</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mrchifir"/>
    <language>en</language>
    <item>
      <title>I Built an Open-Source VPN Manager to Simplify Self-Hosting</title>
      <dc:creator>MrChifir</dc:creator>
      <pubDate>Wed, 02 Dec 2026 16:53:07 +0000</pubDate>
      <link>https://dev.to/mrchifir/i-built-an-open-source-vpn-manager-to-simplify-self-hosting-1eg8</link>
      <guid>https://dev.to/mrchifir/i-built-an-open-source-vpn-manager-to-simplify-self-hosting-1eg8</guid>
      <description>&lt;p&gt;I've always liked the idea of running my own infrastructure instead of depending entirely on third-party services. One thing that bothered me, however, was how much manual work was involved in setting up and maintaining a personal VPN server.&lt;/p&gt;

&lt;p&gt;You need to connect to a VPS over SSH, install the necessary software, generate keys, configure protocols, create client configurations and make sure everything works correctly.&lt;/p&gt;

&lt;p&gt;I wanted to make this process simpler, so I started building Eleutheria.&lt;/p&gt;

&lt;p&gt;Eleutheria is an open-source desktop application and CLI for deploying, connecting to and managing your own VPN infrastructure using sing-box.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The idea&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The main concept is that you bring your own VPS, and Eleutheria handles the installation and configuration.&lt;/p&gt;

&lt;p&gt;Instead of manually configuring everything through a terminal, you can enter your server's SSH credentials, verify its fingerprint and let the application deploy sing-box.&lt;/p&gt;

&lt;p&gt;Once the installation is complete, Eleutheria generates connection links and QR codes for your users.&lt;/p&gt;

&lt;p&gt;You can then connect through a local proxy or use a system-wide VPN through a TUN interface.&lt;/p&gt;

&lt;p&gt;The application doesn't require a subscription to a third-party VPN service. You control the server and its configuration.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What can Eleutheria do?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Some of the features I've implemented so far:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Automated server provisioning over SSH.&lt;/li&gt;
&lt;li&gt;VLESS + Reality as the primary VPN protocol.&lt;/li&gt;
&lt;li&gt;Additional protocols: Hysteria2, TUIC, Shadowsocks 2022 and VLESS + WebSocket through a CDN.&lt;/li&gt;
&lt;li&gt;User management with individual UUIDs and connection links.&lt;/li&gt;
&lt;li&gt;System-wide VPN using TUN.&lt;/li&gt;
&lt;li&gt;Local HTTP and SOCKS5 proxy support.&lt;/li&gt;
&lt;li&gt;Automatic server selection based on latency.&lt;/li&gt;
&lt;li&gt;Automatic failover between servers.&lt;/li&gt;
&lt;li&gt;Traffic-based routing for video platforms, messengers, social networks and AI services.&lt;/li&gt;
&lt;li&gt;Management of multiple VPS instances.&lt;/li&gt;
&lt;li&gt;Server configuration updates and rollback on failure.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One feature I find particularly interesting is traffic-based routing.&lt;/p&gt;

&lt;p&gt;Instead of treating all traffic identically, Eleutheria can monitor different categories separately. For example, video platforms, messaging services and AI services can use different routes.&lt;/p&gt;

&lt;p&gt;This makes it possible to move only a problematic traffic category to another route instead of changing the connection for everything.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why Rust and Tauri?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I chose Rust for the core because I wanted a single implementation that could power both the CLI and desktop application.&lt;/p&gt;

&lt;p&gt;The project is split into several crates:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;eleutheria-core — server provisioning, SSH, configuration generation, protocol profiles, server management and client logic.&lt;/li&gt;
&lt;li&gt;eleutheria-cli — command-line interface.&lt;/li&gt;
&lt;li&gt;eleutheria-helper — privileged service responsible for system-level TUN operations.&lt;/li&gt;
&lt;li&gt;eleutheria-app — application service layer, updates, privilege management and server setup.&lt;/li&gt;
&lt;li&gt;eleutheria-gui — Tauri 2 desktop application.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The GUI and CLI share the same core library. This means that the main functionality doesn't need to be implemented twice.&lt;/p&gt;

&lt;p&gt;For the frontend, I use a lightweight static interface without a bundler.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Security considerations&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Since Eleutheria manages network configuration and requires elevated privileges for certain operations, security is an important part of the design.&lt;/p&gt;

&lt;p&gt;A few implementation details:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;SSH server fingerprints are verified and pinned. If a server's key changes, the application blocks the connection until the change is explicitly acknowledged.&lt;/li&gt;
&lt;li&gt;The sing-box binary is downloaded locally and its SHA-256 checksum is verified before it is uploaded to the VPS.&lt;/li&gt;
&lt;li&gt;Server configurations are validated with &lt;code&gt;sing-box check&lt;/code&gt; before the service is restarted.&lt;/li&gt;
&lt;li&gt;If the service fails to start after an update, the previous configuration is restored.&lt;/li&gt;
&lt;li&gt;SSH credentials and server secrets are stored using the system keyring where available.&lt;/li&gt;
&lt;li&gt;The privileged helper doesn't accept arbitrary sing-box configurations. It receives validated server data and builds the configuration itself.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;On Linux, the helper uses a Unix socket with permission checks and SO_PEERCRED. On Windows, it uses a named pipe with an access-control list.&lt;/p&gt;

&lt;p&gt;There is still room to improve the security model, particularly around sandboxing the privileged helper.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Current state and limitations&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Eleutheria currently supports Windows and Linux. macOS builds are available through CI, but I haven't tested them on a physical Mac.&lt;/p&gt;

&lt;p&gt;There are some limitations worth mentioning:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Only Ubuntu and Debian servers with root access are currently supported.&lt;/li&gt;
&lt;li&gt;VLESS + Reality is the primary protocol; the fallback protocols have received less testing.&lt;/li&gt;
&lt;li&gt;There is no kill-switch yet. If the helper or sing-box stops, traffic can go directly through the normal network connection.&lt;/li&gt;
&lt;li&gt;Some advanced routing configurations still need more real-world testing.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The screenshots in the README use test data and a mock backend. They demonstrate the interface, not a fully completed end-to-end session. I'm particularly interested in feedback from people willing to test the actual installation and connection workflows.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Feedback and contributions&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Eleutheria is released under the GPL-3.0 license.&lt;/p&gt;

&lt;p&gt;I'm looking for feedback from Rust developers, Linux users, self-hosting enthusiasts and anyone familiar with sing-box.&lt;/p&gt;

&lt;p&gt;In particular, I'd like to hear your thoughts on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The overall architecture and separation between the core, CLI, GUI and helper.&lt;/li&gt;
&lt;li&gt;The security model and privileged operations.&lt;/li&gt;
&lt;li&gt;Features that would make managing multiple VPN servers easier.&lt;/li&gt;
&lt;li&gt;Potential compatibility issues or missing functionality.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can find the source code, installation instructions and latest releases here:&lt;/p&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/MrChifir/Eleutheria" rel="noopener noreferrer"&gt;https://github.com/MrChifir/Eleutheria&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Contributions, suggestions and constructive criticism are welcome.&lt;/p&gt;

&lt;p&gt;Thanks for reading!&lt;/p&gt;

</description>
      <category>rust</category>
      <category>opensource</category>
      <category>vpn</category>
      <category>selfhosted</category>
    </item>
  </channel>
</rss>
