Mastering Network Privacy: Building a Custom Secure Internet StackMastering Network Privacy: Building a Custom Secure Internet Stack
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
Initially started this to kill ads, but it ended up becoming a masterclass in network hardening. I am currently winning the war against trackers, but I am losing the battle against Reddit’s bot detection. A small price to pay for a cleaner internet.
Project Overview
Reclaimed network sovereignty by engineering a custom, hardened privacy stack. Tired of pervasive data-mining and tracking, I designed a solution that filters internet traffic at the source, ensuring privacy and security for all connected devices.
Network Architecture Diagram
Client Devices (Always-on VPN) | v WireGuard Encrypted Tunnel (Kill-Switch Enabled) | v Azure VM (Ubuntu 24.04 LTS, Standard_B2ls_v2) | +---> [Unbound DNS (Recursive) + Steven Black Blocklist] | v Clean Internet Traffic (Filtered Ads/Trackers)
Technical Architecture
Infrastructure: Deployed on Azure (Austria East region) using a Standard_B2ls_v2 (2 vcpus, 4 GiB memory) Linux instance.
Network-Level Security Hardening: The VM is secured via Azure Network Security Group (NSG) policies. By explicitly omitting an Inbound Security Rule for Port 22 (SSH), all public SSH access is blocked at the infrastructure level, rendering the VM invisible to public internet brute-force attempts.
Access Paradigm: Remote administration is performed "inside the wire." Management access is only available after establishing an encrypted connection via the WireGuard tunnel (Port 51820).
DNS Privacy (Unbound Recursive Resolver): Configured Unbound as a full recursive DNS resolver without external forwarders. By performing all DNS resolution directly, the system eliminates reliance on third-party upstream providers (like Google or ISP DNS), significantly reducing the potential for external tracking of DNS query patterns.
Client Security & Always-on Connectivity: Configured client devices with "Always-on" VPN functionality to ensure continuous encryption. Implemented a network kill-switch on clients, which explicitly blocks all internet traffic if the VPN connection is dropped, preventing accidental data leaks outside the encrypted tunnel.
Automated Filtering: Leveraged Steven Black’s unified hosts list (169,000+ blocked domains).
Automation: Bash-scripted blocklist management with custom whitelisting and a weekly cron job for automated updates.
Challenges & Learnings
Performance Optimization: Migrated from a GUI-based solution (Pritunl) to a native WireGuard configuration to achieve lower latency and granular system control.
Security Discipline: Managing a headless VM without public SSH access requires precise configuration; the system is optimized for isolation rather than ease-of-use.
Bot Mitigation: High-level privacy filtering often triggers aggressive bot-detection on major platforms (like Reddit), necessitating frequent manual authentication.
Post image
Post image
Post image
Post image
Back to feed
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started