惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Microsoft Security Blog
Microsoft Security Blog
量子位
大猫的无限游戏
大猫的无限游戏
酷 壳 – CoolShell
酷 壳 – CoolShell
IT之家
IT之家
博客园 - 三生石上(FineUI控件)
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - Franky
美团技术团队
Last Week in AI
Last Week in AI
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
人人都是产品经理
人人都是产品经理
罗磊的独立博客
Jina AI
Jina AI
小众软件
小众软件
S
SegmentFault 最新的问题
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
雷峰网
雷峰网
博客园 - 聂微东
博客园_首页
The Cloudflare Blog
WordPress大学
WordPress大学
Apple Machine Learning Research
Apple Machine Learning Research
有赞技术团队
有赞技术团队

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Building a DPI-Resistant VPN with VLESS REALITY & Nginx (...
Obelisk PN · 2026-05-15 · via DEV Community

tags: opensource, security, python, bash

If you live in a region with strict internet censorship (like China, Iran, or Russia), you probably know that the golden age of traditional VPNs is over. Protocols like OpenVPN, IPSec, and even WireGuard are easily identified and blocked by Deep Packet Inspection (DPI) systems within milliseconds.

To keep our users connected, my team and I built Obelisk PN — a privacy service based on the Xray-core and the VLESS REALITY protocol.

Today, we are open-sourcing our core engine (server deployment and routing logic). In this post, I want to share the architectural decisions that make our network invisible to DPI.

1. The Nginx Facade (Active Probing Defense)

Modern censors don't just passively analyze traffic; they actively probe suspicious IP addresses. If a censor detects encrypted traffic going to an unknown server, they send HTTP/TLS requests to that IP. If the server drops the connection or replies with an Xray/V2ray handshake error, the IP gets instantly banned.

To prevent this, we use an Nginx Facade:

  1. We run standard Nginx on port 443.
  2. If a censor probes the server, Nginx returns a valid 200 OK with a generic HTML stub. To the censor, it looks like a forgotten developer's server.
  3. If a legitimate client connects, Nginx uses the PROXY Protocol to seamlessly forward the VLESS traffic to the local Xray-core backend.

You can check our automated setup script (setup.sh) in the GitHub repo to see how we configure the kernel (BBR, tcp_fastopen) and the Nginx streams.

2. Split Routing Logic

Tunneling 100% of a user's traffic through a foreign server is inefficient. If a user tries to access a local banking app or a government service while connected to a server in the Netherlands, they face high latency and risk triggering anti-fraud systems.

In our config_builder.py, we implemented strict split-tunneling rules:

  • Connections to local domains (e.g., .ru zones) and local IP ranges bypass the VPN tunnel entirely.
  • Only censored or sensitive traffic is encrypted and sent through the VLESS tunnel.

This ensures zero speed loss for local services while maintaining absolute privacy for the rest of the web.

3. The Zero-Logs Proof

"Zero-logs" is the most abused buzzword in the VPN industry. We decided to prove it by opening our deployment code.

If you look at our Xray configurations, you will see that the loglevel is forced to none, and access logs are physically routed to /dev/null. We only collect infrastructure metrics to maintain uptime.

Why keep the evasion signatures closed?

While we open-sourced our privacy and routing layers, we intentionally kept our specific TLS evasion signatures (like dynamic spiderX paths and SNI pools) private. In the cat-and-mouse game against national firewalls, publishing exact obfuscation patterns acts as a free training dataset for DPI algorithms. We open-sourced everything that proves our privacy, but kept our survival mechanisms proprietary.

Conclusion

Building a censorship-resistant network requires more than just installing a script; it requires understanding how traffic analyzers think.

I invite the community to review our code, suggest improvements, or use it as a reference for your own privacy setups:
👉 GitHub: obeliskpn-core

And if you just want a reliable, ready-to-use service that bypasses DPI without draining your battery, feel free to check out Obelisk PN.

Stay private, stay free!